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

Fix inappropriate shard will cause base64 decode error #1383

Merged
merged 2 commits into from
Mar 11, 2021
Merged

Conversation

Linary
Copy link
Contributor

@Linary Linary commented Mar 9, 2021

No description provided.

Change-Id: Ibc90df4e792b00222d41806fee769082545dea40
@codecov
Copy link

codecov bot commented Mar 9, 2021

Codecov Report

Merging #1383 (752cadc) into master (656eee1) will decrease coverage by 0.28%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1383      +/-   ##
============================================
- Coverage     62.37%   62.09%   -0.29%     
- Complexity     5829     5842      +13     
============================================
  Files           385      385              
  Lines         31953    32260     +307     
  Branches       4460     4521      +61     
============================================
+ Hits          19931    20032     +101     
- Misses        10001    10199     +198     
- Partials       2021     2029       +8     
Impacted Files Coverage Δ Complexity Δ
...om/baidu/hugegraph/backend/store/BackendTable.java 73.33% <0.00%> (ø) 11.00 <0.00> (ø)
.../hugegraph/backend/store/rocksdb/RocksDBTable.java 71.53% <0.00%> (-0.77%) 37.00 <0.00> (ø)
.../baidu/hugegraph/security/HugeSecurityManager.java 55.97% <0.00%> (-24.25%) 83.00% <0.00%> (ø%)
...va/com/baidu/hugegraph/backend/cache/RamCache.java 71.83% <0.00%> (-0.58%) 27.00% <0.00%> (-1.00%)
...a/com/baidu/hugegraph/backend/query/Condition.java 78.10% <0.00%> (-0.37%) 32.00% <0.00%> (ø%)
...m/baidu/hugegraph/backend/tx/GraphTransaction.java 79.95% <0.00%> (-0.17%) 306.00% <0.00%> (ø%)
...in/java/com/baidu/hugegraph/StandardHugeGraph.java 77.87% <0.00%> (-0.13%) 131.00% <0.00%> (+12.00%) ⬇️
...a/com/baidu/hugegraph/variables/HugeVariables.java 0.00% <0.00%> (ø) 0.00% <0.00%> (ø%)
...om/baidu/hugegraph/auth/StandardAuthenticator.java 0.00% <0.00%> (ø) 0.00% <0.00%> (ø%)
.../com/baidu/hugegraph/auth/StandardAuthManager.java 94.19% <0.00%> (+0.03%) 62.00% <0.00%> (+1.00%)
... and 2 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 656eee1...752cadc. Read the comment docs.

Copy link
Contributor

@javeme javeme left a comment

Choose a reason for hiding this comment

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

please update PR title

@@ -327,6 +327,7 @@ public long estimateNumKeys(Session session) {

@Override
public byte[] position(String position) {
// The value of START AND END are same
Copy link
Contributor

Choose a reason for hiding this comment

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

AND => and
but prefer don't assume START and END are the same, prefer START.equals(position) || END.equals(position)

@Linary Linary changed the title Shard 0 error Fix shard start is 0 will cause base64 decode error Mar 10, 2021
Change-Id: Ia21bb0bcbbca9c3110f6c6ad61c15f4a2f598b1c
@Linary Linary changed the title Fix shard start is 0 will cause base64 decode error Fix inappropriate shard will cause base64 decode error Mar 11, 2021
@zhoney zhoney merged commit 4bf094d into master Mar 11, 2021
@zhoney zhoney deleted the shard-0-error branch March 11, 2021 09:58
javeme pushed a commit that referenced this pull request Mar 29, 2021
* Fix shard start is 0 will cause base64 decode error

Change-Id: Ibc90df4e792b00222d41806fee769082545dea40
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