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 count error, if advanceNextResponse is empty, we should read next region #878

Merged
merged 5 commits into from
Jul 1, 2019
Merged
Changes from 2 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 @@ -124,6 +124,21 @@ private boolean advanceNextResponse() {
}

private boolean readNextRegionChunks() {
while (true) {
if (eof || regionTasks == null || taskIndex >= regionTasks.size()) {
return false;
}
if (doReadNextRegionChunks()) {
return true;
} // else {
// if doReadNextRegionChunks returns false
// readNextRegionChunks should not just return false
// readNextRegionChunks should read next region chunks
// }
}
}

private boolean doReadNextRegionChunks() {
if (eof || regionTasks == null || taskIndex >= regionTasks.size()) {
marsishandsome marked this conversation as resolved.
Show resolved Hide resolved
return false;
}
Expand Down