Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit 4f786fd

Browse files
authored
Merge f9aa2aa into 7c1bb12
2 parents 7c1bb12 + f9aa2aa commit 4f786fd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ public void onResponse(AppendRowsResponse response) {
924924
IllegalStateException exception =
925925
new IllegalStateException(
926926
String.format(
927-
"The append result offset %s does not match " + "the expected offset %s.",
927+
"The append result offset %s does not match the expected offset %s.",
928928
response.getAppendResult().getOffset().getValue(),
929929
inflightBatch.getExpectedOffset()));
930930
inflightBatch.onFailure(exception);

google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/StreamWriterTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,7 @@ public void testAppendWhileShutdownSuccess() throws Exception {
678678
.toBuilder()
679679
// When shutdown, we should have something in batch.
680680
.setElementCountThreshold(3L)
681+
.setDelayThreshold(Duration.ofSeconds(1000))
681682
.setFlowControlSettings(
682683
StreamWriter.Builder.DEFAULT_FLOW_CONTROL_SETTINGS
683684
.toBuilder()
@@ -1072,6 +1073,7 @@ public void testOffset() throws Exception {
10721073
StreamWriter.Builder.DEFAULT_BATCHING_SETTINGS
10731074
.toBuilder()
10741075
.setElementCountThreshold(2L)
1076+
.setDelayThreshold(Duration.ofSeconds(1000))
10751077
.build())
10761078
.build()) {
10771079

0 commit comments

Comments
 (0)