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

Commit ba374b4

Browse files
authored
Merge c089f6a into 6021920
2 parents 6021920 + c089f6a commit ba374b4

3 files changed

Lines changed: 608 additions & 618 deletions

File tree

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

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import com.google.api.gax.rpc.ResponseObserver;
3636
import com.google.api.gax.rpc.StreamController;
3737
import com.google.api.gax.rpc.TransportChannelProvider;
38+
import com.google.api.gax.rpc.UnimplementedException;
3839
import com.google.auth.oauth2.GoogleCredentials;
3940
import com.google.common.base.Preconditions;
4041
import com.google.protobuf.Int64Value;
@@ -309,27 +310,7 @@ public void flushAll(long timeoutMillis) throws Exception {
309310
* @throws InterruptedException
310311
*/
311312
public void refreshAppend() throws InterruptedException {
312-
appendAndRefreshAppendLock.lock();
313-
if (shutdown.get()) {
314-
LOG.warning("Cannot refresh on a already shutdown writer.");
315-
appendAndRefreshAppendLock.unlock();
316-
return;
317-
}
318-
// There could be a moment, stub is not yet initialized.
319-
if (clientStream != null) {
320-
LOG.info("Closing the stream " + streamName);
321-
clientStream.closeSend();
322-
}
323-
messagesBatch.resetAttachSchema();
324-
bidiStreamingCallable = stub.appendRowsCallable();
325-
clientStream = bidiStreamingCallable.splitCall(responseObserver);
326-
while (!clientStream.isSendReady()) {
327-
Thread.sleep(10);
328-
}
329-
Thread.sleep(this.retrySettings.getInitialRetryDelay().toMillis());
330-
// Can only unlock here since need to sleep the full 7 seconds before stream can allow appends.
331-
appendAndRefreshAppendLock.unlock();
332-
LOG.info("Write Stream " + streamName + " connection established");
313+
throw new UnimplementedException(null, GrpcStatusCode.of(Status.Code.UNIMPLEMENTED), false);
333314
}
334315

335316
private void setupAlarm() {

0 commit comments

Comments
 (0)