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 bug: index rebuild exceeds 80w limit and 65536 cassandra limit #292

Merged
merged 1 commit into from
Dec 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ private <T> void traverseByLabel(SchemaLabel label,
* Query.DEFAULT_CAPACITY to limit elements number per pass
*/
query.limit(Query.DEFAULT_CAPACITY);
query.capacity(Query.DEFAULT_CAPACITY);
query.capacity(Query.NO_CAPACITY);
query.eq(HugeKeys.LABEL, label.id());
int pass = 0;
int counter = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ protected void commit2Backend() {
this.commitMutation2Backend(mutation, txMutation);
}

@Override
public void commitIfGtSize(int size) throws BackendException {
int totalSize = this.mutationSize() +
this.indexTransaction().mutationSize();
if (totalSize >= size) {
this.commit();
}
}

@Override
public void rollback() throws BackendException {
try {
Expand Down