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

Commit 9791d69

Browse files
feat: bug fix for checking write_stream field but proto might not contain the field to unblock the release (#1806)
* feat: Split writer into connection worker and wrapper, this is a prerequisite for multiplexing client * feat: add connection worker pool skeleton, used for multiplexing client * feat: add Load api for connection worker for multiplexing client * feat: add multiplexing support to connection worker. We will treat every new stream name as a switch of destinationt * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: port the multiplexing client core algorithm and basic tests also fixed a tiny bug inside fake bigquery write impl for getting thre response from offset * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: wire multiplexing connection pool to stream writer * feat: some fixes for multiplexing client * feat: fix some todos, and reject the mixed behavior of passed in client or not * feat: fix the bug that we may peek into the write_stream field but it's possible the proto schema does not contain this field * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 694abbb commit 9791d69

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/ConnectionWorker.java

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -586,13 +586,18 @@ private void cleanupInflightRequests() {
586586
}
587587

588588
private void requestCallback(AppendRowsResponse response) {
589-
log.fine(
590-
"Got response on stream '"
591-
+ response.getWriteStream()
592-
+ "' "
593-
+ (response.hasError()
594-
? "error: " + response.getError()
595-
: "offset: " + response.getAppendResult().getOffset().getValue()));
589+
if (!response.hasUpdatedSchema()) {
590+
log.fine(String.format("Got response on stream %s", response.toString()));
591+
} else {
592+
AppendRowsResponse responseWithUpdatedSchemaRemoved =
593+
response.toBuilder().clearUpdatedSchema().build();
594+
595+
log.fine(
596+
String.format(
597+
"Got response with schema updated (omitting updated schema in response here): %s",
598+
responseWithUpdatedSchemaRemoved.toString()));
599+
}
600+
596601
AppendRequestAndResponse requestWrapper;
597602
this.lock.lock();
598603
if (response.hasUpdatedSchema()) {

0 commit comments

Comments
 (0)