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 gremlin job result size gt cassandra limit and lt hugegraph limit #1334

Merged
merged 3 commits into from
Jan 14, 2021

Conversation

zhoney
Copy link
Contributor

@zhoney zhoney commented Jan 14, 2021

Change-Id: Iade74c66259214a6895ae369374c7243761cb0e0

Change-Id: Iade74c66259214a6895ae369374c7243761cb0e0
private static final String ERROR_MAX_LEN = "Failed to commit changes: " +
"The max length of bytes is";
private static final String ERROR_COMMIT = "Failed to commit changes: ";
private static final String ERROR_MAX_LEN = "The max length of bytes is";
Copy link
Contributor

Choose a reason for hiding this comment

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

define Set

/*
* ERROR_TOO_LARGE_BATCH occurs when using cassandra store
* and result size is in
* [batch_size_fail_threshold_in_kb, TASK_RESULT_SIZE_LIMIT)
Copy link
Contributor

Choose a reason for hiding this comment

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

improve comments

@codecov
Copy link

codecov bot commented Jan 14, 2021

Codecov Report

Merging #1334 (f81a3cf) into master (e0f36bd) will decrease coverage by 0.00%.
The diff coverage is 12.50%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1334      +/-   ##
============================================
- Coverage     62.32%   62.31%   -0.01%     
- Complexity     5770     5772       +2     
============================================
  Files           377      377              
  Lines         31553    31564      +11     
  Branches       4422     4423       +1     
============================================
+ Hits          19666    19670       +4     
- Misses         9887     9894       +7     
  Partials       2000     2000              
Impacted Files Coverage Δ Complexity Δ
...in/java/com/baidu/hugegraph/task/TaskCallable.java 55.88% <12.50%> (-4.78%) 13.00 <0.00> (ø)
...ugegraph/backend/store/raft/StoreStateMachine.java 0.00% <0.00%> (ø) 0.00% <0.00%> (ø%)
...gegraph/backend/cache/CachedSchemaTransaction.java 89.95% <0.00%> (+0.14%) 34.00% <0.00%> (+1.00%)

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 e0f36bd...f81a3cf. Read the comment docs.

Change-Id: Iead22b315ac6959d8a9492ed36fc97c9b5d88345
@@ -117,6 +126,15 @@ protected void save() {
}
}

private static boolean needSaveWithEx(String message) {
Copy link
Contributor

Choose a reason for hiding this comment

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

move to line 167

Change-Id: Ic2a246facffca683052bb56bf76ad21b5413d94a
@javeme
Copy link
Contributor

javeme commented Jan 14, 2021

image

@Linary Linary merged commit 36c58b8 into master Jan 14, 2021
@Linary Linary deleted the fix-job-result-too-large branch January 14, 2021 14:13
javeme pushed a commit that referenced this pull request Feb 10, 2021
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