You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Samrat002 (via GitHub)" <gi...@apache.org> on 2026/04/08 13:03:59 UTC

[PR] [FLINK-39114][filesystem] Support configurable timeout in native-s3-fs [flink]

Samrat002 opened a new pull request, #27904:
URL: https://github.com/apache/flink/pull/27904

   ### What is the purpose of the change
                                                                                                                                                                                      
     This pull request makes hardcoded timeout values in the Native S3 FileSystem configurable via Flink configuration options. Previously, timeouts for HTTP connections, socket reads, connection idle time, filesystem close, and client close were        
     hardcoded constants. From an operational standpoint, these should be tunable to accommodate different network environments and deployment scenarios.
                                                                                                                                                                                      
     Brief change log                                          
   
     - Added 4 new ConfigOption fields: 
         1. `s3.connection.timeout, s3.socket.timeout`
         2. `s3.connection.max-idle-time`
         3. `s3.close.timeout`
         4. `s3.client.close.timeout`                                                                              
     - Default values match the previous hardcoded values (no behavior change without explicit configuration)                                                                         
                                                                                                                                                                                       
   ### Verifying this change                                                                                                                                                            
     - Added testCustomTimeoutConfiguration in NativeS3FileSystemFactoryTest that creates a filesystem with all  custom timeout values and verifies successful creation                                                                                                                              
                                                                                                                                                                                      
     Does this pull request potentially affect one of the following parts:                                                                                                            
                                                                                                                                                                                      
     - Dependencies (does it add or upgrade a dependency): no                                                                                                                         
     - The public API, i.e., is any changed class annotated with @Public(Evolving): no  
     - The serializers: no                                                                                                                                                            
     - The runtime per-record code paths (performance sensitive): no                                                                                                                  
     - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no                                                   
     - The S3 file system connector: yes                                                                                                                                              
                                                                                                                                                                                      
   ### Documentation                                                                                                                                                                    
                                                                                                                                                                                      
     - Does this pull request introduce a new feature? yes                                                                                                                            
     - If yes, how is the feature documented? JavaDocs


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-39114][filesystem] Support configurable timeout in native-s3-fs [flink]

Posted by "Izeren (via GitHub)" <gi...@apache.org>.
Izeren commented on code in PR #27904:
URL: https://github.com/apache/flink/pull/27904#discussion_r3057971213


##########
flink-filesystems/flink-s3-fs-native/src/test/java/org/apache/flink/fs/s3native/NativeS3FileSystemFactoryTest.java:
##########
@@ -435,4 +435,37 @@ void testS3AWithSSEConfiguration() throws Exception {
         assertThat(fs).isNotNull();
         assertThat(fs).isInstanceOf(NativeS3FileSystem.class);
     }
+
+    @Test
+    void testCustomTimeoutConfiguration() throws Exception {

Review Comment:
   We should have some negative testing for incorrect values too



##########
flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/NativeS3FileSystemFactory.java:
##########
@@ -203,6 +204,44 @@ public class NativeS3FileSystemFactory implements FileSystemFactory {
                                     + "Uses the AWS SDK's default retry strategy (exponential backoff with jitter). "
                                     + "Set to 0 to disable retries.");
 
+    public static final ConfigOption<Integer> CONNECTION_TIMEOUT =

Review Comment:
   Can we use Duration for them? 



-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-39114][filesystem] Support configurable timeout in native-s3-fs [flink]

Posted by "flinkbot (via GitHub)" <gi...@apache.org>.
flinkbot commented on PR #27904:
URL: https://github.com/apache/flink/pull/27904#issuecomment-4206451206

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "9223b3cbf5a2392a96a4c9e4aa24fe2158984d81",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "9223b3cbf5a2392a96a4c9e4aa24fe2158984d81",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 9223b3cbf5a2392a96a4c9e4aa24fe2158984d81 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-39114][filesystem] Support configurable timeout in native-s3-fs [flink]

Posted by "Samrat002 (via GitHub)" <gi...@apache.org>.
Samrat002 commented on code in PR #27904:
URL: https://github.com/apache/flink/pull/27904#discussion_r3059436766


##########
flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/NativeS3FileSystemFactory.java:
##########
@@ -203,6 +204,44 @@ public class NativeS3FileSystemFactory implements FileSystemFactory {
                                     + "Uses the AWS SDK's default retry strategy (exponential backoff with jitter). "
                                     + "Set to 0 to disable retries.");
 
+    public static final ConfigOption<Integer> CONNECTION_TIMEOUT =

Review Comment:
   Yes, my miss. I went ahead with the existing code datatype definition. 



-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-39114][filesystem] Support configurable timeout in native-s3-fs [flink]

Posted by "rkhachatryan (via GitHub)" <gi...@apache.org>.
rkhachatryan merged PR #27904:
URL: https://github.com/apache/flink/pull/27904


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org