From c6c0a36860ab944b73dbe2a72e824ed61fe09bb0 Mon Sep 17 00:00:00 2001 From: "Xu Han@AutoMQ" Date: Wed, 6 Mar 2024 16:03:23 +0800 Subject: [PATCH] feat(s3stream): increase s3 timeout (#955) Signed-off-by: Robin Han --- .../java/com/automq/stream/s3/operator/DefaultS3Operator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/s3stream/src/main/java/com/automq/stream/s3/operator/DefaultS3Operator.java b/s3stream/src/main/java/com/automq/stream/s3/operator/DefaultS3Operator.java index 42f5558fc..3ee10188f 100644 --- a/s3stream/src/main/java/com/automq/stream/s3/operator/DefaultS3Operator.java +++ b/s3stream/src/main/java/com/automq/stream/s3/operator/DefaultS3Operator.java @@ -666,8 +666,8 @@ public S3AsyncClient newS3Client(String endpoint, String region, boolean forcePa } builder.serviceConfiguration(c -> c.pathStyleAccessEnabled(forcePathStyle)); builder.credentialsProvider(newCredentialsProviderChain(credentialsProviders)); - builder.overrideConfiguration(b -> b.apiCallTimeout(Duration.ofMinutes(1)) - .apiCallAttemptTimeout(Duration.ofSeconds(30))); + builder.overrideConfiguration(b -> b.apiCallTimeout(Duration.ofMinutes(2)) + .apiCallAttemptTimeout(Duration.ofSeconds(60))); return builder.build(); }