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

upgrade store version due to read frequency of property key #1341

Merged
merged 4 commits into from
Jan 21, 2021

Conversation

zhoney
Copy link
Contributor

@zhoney zhoney commented Jan 19, 2021

Change-Id: Ie8643276d572e7eabee24f13ea0ee4ac38e60e5b

Change-Id: Ie8643276d572e7eabee24f13ea0ee4ac38e60e5b
@codecov
Copy link

codecov bot commented Jan 19, 2021

Codecov Report

Merging #1341 (abe30d8) into master (36c58b8) will decrease coverage by 0.00%.
The diff coverage is 92.13%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1341      +/-   ##
============================================
- Coverage     62.30%   62.30%   -0.01%     
- Complexity     5799     5802       +3     
============================================
  Files           379      379              
  Lines         31664    31680      +16     
  Branches       4435     4438       +3     
============================================
+ Hits          19729    19737       +8     
- Misses         9930     9933       +3     
- Partials       2005     2010       +5     
Impacted Files Coverage Δ Complexity Δ
...hugegraph/backend/serializer/BinarySerializer.java 84.84% <66.66%> (-0.21%) 116.00 <0.00> (ø)
.../hugegraph/backend/serializer/TableSerializer.java 86.03% <92.30%> (-1.44%) 61.00 <4.00> (+3.00) ⬇️
...ackend/store/cassandra/CassandraStoreProvider.java 100.00% <100.00%> (ø) 6.00 <1.00> (ø)
...u/hugegraph/backend/serializer/TextSerializer.java 86.65% <100.00%> (+0.11%) 96.00 <0.00> (ø)
.../backend/store/memory/InMemoryDBStoreProvider.java 100.00% <100.00%> (ø) 11.00 <1.00> (ø)
...va/com/baidu/hugegraph/type/define/SerialEnum.java 80.00% <100.00%> (+9.41%) 5.00 <0.00> (ø)
...egraph/backend/store/hbase/HbaseStoreProvider.java 100.00% <100.00%> (ø) 6.00 <1.00> (ø)
...egraph/backend/store/mysql/MysqlStoreProvider.java 100.00% <100.00%> (ø) 6.00 <1.00> (ø)
...kend/store/postgresql/PostgresqlStoreProvider.java 92.50% <100.00%> (ø) 5.00 <1.00> (ø)
...ph/backend/store/rocksdb/RocksDBStoreProvider.java 100.00% <100.00%> (ø) 6.00 <1.00> (ø)
... and 1 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 36c58b8...abe30d8. Read the comment docs.

assert entry.type().isSchema();

T column = entry.column(key);
E.checkState(column != null, "Not found key '%s' from entry %s",
Copy link
Contributor

Choose a reason for hiding this comment

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

wrap line before message

Number dataType = schemaColumn(entry, HugeKeys.DATA_TYPE);
Number cardinality = schemaColumn(entry, HugeKeys.CARDINALITY);
Number aggregateType = schemaColumn(entry, HugeKeys.AGGREGATE_TYPE);
Number readFrequency = schemaColumn(entry, HugeKeys.READ_FREQUENCY);
Copy link
Contributor

Choose a reason for hiding this comment

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

how to deal with can't get version-info from old version backend

Change-Id: I33d2ea650855f8bf2088a5255661d55900d3cf62
return value;
}

private <T extends SerialEnum> T schemaEnum(TableBackendEntry entry,
Copy link
Contributor

Choose a reason for hiding this comment

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

set static

Change-Id: I5d98a1d95c2a9b9e084bfc18d87c1ce9ad14c331
Change-Id: I52ea252e14f6578fc7ccf4d1406917af70f43aaf
@zhoney zhoney merged commit f9b3b9e into master Jan 21, 2021
@zhoney zhoney deleted the upgrade-store-version branch January 21, 2021 12:13
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