Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor olap property #1675

Merged
merged 2 commits into from
Dec 7, 2021
Merged

refactor olap property #1675

merged 2 commits into from
Dec 7, 2021

Conversation

javeme
Copy link
Contributor

@javeme javeme commented Nov 30, 2021

Change-Id: I137a42916eeee00775eafb55ee299a8a64e21671

Change-Id: I137a42916eeee00775eafb55ee299a8a64e21671
@codecov
Copy link

codecov bot commented Nov 30, 2021

Codecov Report

Merging #1675 (781580d) into master (5aab8b4) will increase coverage by 0.01%.
The diff coverage is 77.55%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1675      +/-   ##
============================================
+ Coverage     66.60%   66.61%   +0.01%     
+ Complexity     7042     7041       -1     
============================================
  Files           421      420       -1     
  Lines         34673    34649      -24     
  Branches       4803     4803              
============================================
- Hits          23095    23083      -12     
+ Misses         9231     9222       -9     
+ Partials       2347     2344       -3     
Impacted Files Coverage Δ
...ph/backend/store/AbstractBackendStoreProvider.java 82.41% <ø> (+1.10%) ⬆️
...java/com/baidu/hugegraph/schema/SchemaElement.java 77.14% <ø> (-0.33%) ⬇️
...du/hugegraph/schema/builder/IndexLabelBuilder.java 86.95% <0.00%> (-0.08%) ⬇️
...c/main/java/com/baidu/hugegraph/util/LockUtil.java 84.93% <ø> (-0.21%) ⬇️
...in/java/com/baidu/hugegraph/StandardHugeGraph.java 68.47% <60.00%> (-0.20%) ⬇️
...egraph/backend/store/cassandra/CassandraStore.java 72.64% <62.50%> (ø)
.../hugegraph/backend/store/rocksdb/RocksDBStore.java 65.39% <66.66%> (ø)
...m/baidu/hugegraph/backend/tx/GraphTransaction.java 79.85% <75.00%> (-0.05%) ⬇️
.../baidu/hugegraph/backend/tx/SchemaTransaction.java 91.28% <100.00%> (+1.52%) ⬆️
...graph/job/schema/OlapPropertyKeyClearCallable.java 84.37% <100.00%> (ø)
... and 14 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5aab8b4...781580d. Read the comment docs.

zhoney
zhoney previously approved these changes Dec 2, 2021
@@ -258,8 +258,13 @@ public void serverStarted(Id serverId, NodeRole serverRole) {
serverId, serverRole, this.name);
this.serverInfoManager().initServerInfo(serverId, serverRole);

LOG.info("Search olap property key for graph '{}'", this.name);
this.schemaTransaction().initAndRegisterOlapTables();
// TODO: check necessary?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we will rebuild missing olap table here (in another pr)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, when will the table be missing?

Copy link
Member

@imbajin imbajin Dec 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at least 2 cases:

  1. create property key success, create table failed (with any reason)
  2. the olap table store file delete/broken by some operations

and once it happens, we can't delete or search or recovery it, this problem will be fixed in that pr

LOG.info("Search olap property key for graph '{}'", this.name);
this.schemaTransaction().initAndRegisterOlapTables();
// TODO: check necessary?
LOG.info("Init olap property-keys for graph '{}'", this.name);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems the info is not accurate, "Check olap property-keys and tables for xxx" is better

Change-Id: Idb95736c9750e771d924a44fb24d0163a647dc7b
@javeme javeme merged commit 9978ad1 into master Dec 7, 2021
@javeme javeme deleted the olap-improve branch December 7, 2021 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants