ahmedabu98 commented on code in PR #31125:
URL: https://github.com/apache/beam/pull/31125#discussion_r1591283630
##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryStorageStreamSource.java:
##########
@@ -238,9 +245,12 @@ public synchronized boolean advance() throws IOException {
private synchronized boolean readNextRecord() throws IOException {
Iterator<ReadRowsResponse> responseIterator = this.responseIterator;
while (reader.readyForNextReadResponse()) {
+ boolean previous = splitAllowed;
+ splitAllowed = false;
// hasNext call has internal retry. Record throttling metrics after
called
boolean hasNext = responseIterator.hasNext();
storageClient.reportPendingMetrics();
+ splitAllowed = previous;
Review Comment:
thanks, might be good to add a small comment that we shouldn't split while
waiting for this API call
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]