From 19744f5e9b395070282a7b85f165290535be783d Mon Sep 17 00:00:00 2001 From: rishtigupta Date: Thu, 23 Jan 2025 10:09:22 -0800 Subject: [PATCH] chore: enable retry with max attempts 3 for momento local grpc config --- .../src/main/java/momento/sdk/internal/GrpcChannelOptions.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/momento-sdk/src/main/java/momento/sdk/internal/GrpcChannelOptions.java b/momento-sdk/src/main/java/momento/sdk/internal/GrpcChannelOptions.java index 2d501511..16b22feb 100644 --- a/momento-sdk/src/main/java/momento/sdk/internal/GrpcChannelOptions.java +++ b/momento-sdk/src/main/java/momento/sdk/internal/GrpcChannelOptions.java @@ -34,6 +34,8 @@ public static void applyGrpcConfigurationToChannelBuilder( channelBuilder.disableRetry(); } else { channelBuilder.usePlaintext(); + channelBuilder.enableRetry(); + channelBuilder.maxRetryAttempts(3); } grpcConfig.getMaxReceivedMessageSize().ifPresent(channelBuilder::maxInboundMessageSize);