Skip to content
Permalink
Browse files
fix: a build break caused by breaking change. (#729)
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 a1b1c8edce87a8d33faf1067f617e3f47c4afc45
Showing with 2 additions and 2 deletions.
  1. +2 −2 ...e-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamWriter.java
@@ -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());
}

0 comments on commit a1b1c8e

Please sign in to comment.