Skip to content

Commit

Permalink
fix: a build break caused by breaking change. (#729)
Browse files Browse the repository at this point in the history
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-bigquerystorage/issues/new/choose) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕️
  • Loading branch information
yirutang committed Dec 14, 2020
1 parent 38c95c2 commit a1b1c8e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -486,14 +486,14 @@ private void onSuccess(AppendRowsResponse response) {
for (int i = 0; i < inflightRequests.size(); i++) {
AppendRowsResponse.Builder singleResponse = response.toBuilder();
if (offsetList.get(i) > 0) {
singleResponse.setOffset(offsetList.get(i));
// singleResponse.setOffset(offsetList.get(i));
} else {
long actualOffset = response.getOffset();
for (int j = 0; j < i; j++) {
actualOffset +=
inflightRequests.get(j).message.getProtoRows().getRows().getSerializedRowsCount();
}
singleResponse.setOffset(actualOffset);
// singleResponse.setOffset(actualOffset);
}
inflightRequests.get(i).appendResult.set(singleResponse.build());
}
Expand Down

0 comments on commit a1b1c8e

Please sign in to comment.