rajdchak commented on code in PR #7295:
URL: https://github.com/apache/hadoop/pull/7295#discussion_r1924314116


##########
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/impl/S3AStoreImpl.java:
##########
@@ -230,7 +232,23 @@ public class S3AStoreImpl
   @Override
   protected void serviceInit(final Configuration conf) throws Exception {
 
-    objectInputStreamFactory = createStreamFactory(conf);
+    if(conf.getBoolean(ANALYTICS_ACCELERATOR_ENABLED_KEY, 
ANALYTICS_ACCELERATOR_ENABLED_DEFAULT)) {
+      boolean analyticsAcceleratorCRTEnabled = 
conf.getBoolean(ANALYTICS_ACCELERATOR_CRT_ENABLED,
+                      ANALYTICS_ACCELERATOR_CRT_ENABLED_DEFAULT);
+      final S3AsyncClient s3AsyncClient;
+      LOG.info("Using S3SeekableInputStream");
+      if(analyticsAcceleratorCRTEnabled) {
+        LOG.info("Using S3 CRT client for analytics accelerator S3");
+        s3AsyncClient = S3CrtAsyncClient.builder().maxConcurrency(600).build();

Review Comment:
   moved to a different method



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