yifan-c commented on code in PR #132:
URL: https://github.com/apache/cassandra-sidecar/pull/132#discussion_r1729429613


##########
src/main/java/org/apache/cassandra/sidecar/config/yaml/S3ClientConfigurationImpl.java:
##########
@@ -51,26 +68,34 @@ public S3ClientConfigurationImpl()
         this(DEFAULT_THREAD_NAME_PREFIX,
              DEFAULT_S3_CLIENT_CONCURRENCY,
              DEFAULT_THREAD_KEEP_ALIVE_SECONDS,
+             DEFAULT_RANGE_GET_OBJECT_BYTES_SIZE,
+             DEFAULT_API_CALL_TIMEOUT_MILLIS,
              new S3ProxyConfigurationImpl());
     }
 
     public S3ClientConfigurationImpl(String threadNamePrefix,
                                      int concurrency,
                                      long threadKeepAliveSeconds,
+                                     int rangeGetObjectBytesSize,
+                                     long apiCallTimeoutMillis,
                                      S3ProxyConfiguration proxyConfig)
     {
+        Preconditions.checkArgument(apiCallTimeoutMillis > 
TimeUnit.SECONDS.toMillis(10),

Review Comment:
   AWS client do not enforce any timeout for api calls by default. The 10 
seconds is an arbitrary value that should prevent unexpected early exit in most 
case. The default api call timeout set as part of the patch is 60 seconds. 



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to