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

Commit 5d2f2b9

Browse files
revert retry settings in context
Change-Id: I4e44b7ca859ba61424bfcd5607e857cb6bbf298c
1 parent e1f40c9 commit 5d2f2b9

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubTest.java

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -709,11 +709,7 @@ public void testCallContextPropagatedInMutationBatcher()
709709
contextInterceptor.contexts.clear();
710710

711711
// Override the timeout
712-
GrpcCallContext clientCtx =
713-
GrpcCallContext.createDefault()
714-
.withTimeout(Duration.ofMinutes(10))
715-
.withRetrySettings(
716-
RetrySettings.newBuilder().setTotalTimeout(Duration.ofMinutes(10)).build());
712+
GrpcCallContext clientCtx = GrpcCallContext.createDefault().withTimeout(Duration.ofMinutes(10));
717713

718714
// Send a batch
719715
try (Batcher<RowMutationEntry, Void> batcher =
@@ -742,11 +738,7 @@ public void testCallContextPropagatedInReadBatcher()
742738
contextInterceptor.contexts.clear();
743739

744740
// Override the timeout
745-
GrpcCallContext clientCtx =
746-
GrpcCallContext.createDefault()
747-
.withTimeout(Duration.ofMinutes(10))
748-
.withRetrySettings(
749-
RetrySettings.newBuilder().setTotalTimeout(Duration.ofMinutes(10)).build());
741+
GrpcCallContext clientCtx = GrpcCallContext.createDefault().withTimeout(Duration.ofMinutes(10));
750742

751743
// Send a batch
752744
try (Batcher<ByteString, Row> batcher =
@@ -981,7 +973,7 @@ private static class ContextInterceptor implements ServerInterceptor {
981973
final BlockingQueue<MethodContext> contexts = Queues.newLinkedBlockingDeque();
982974

983975
static class MethodContext {
984-
final MethodDescriptor<?, ?> method;
976+
final MethodDescriptor<?,?> method;
985977
final Context context;
986978

987979
MethodContext(MethodDescriptor<?, ?> method, Context context) {

0 commit comments

Comments
 (0)