Skip to content

Commit

Permalink
change the default value of request time out (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
vintmd authored Aug 21, 2024
1 parent 4df8618 commit 4dff42b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/apache/hadoop/fs/CosNConfigKeys.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ public class CosNConfigKeys extends CommonConfigurationKeys {
public static final String COSN_CLIENT_USE_REQUEST_TIMEOUT = "fs.cosn.client.use.request.timeout";
public static final boolean DEFAULT_COSN_CLIENT_USE_REQUEST_TIMEOUT = false;
public static final String COSN_CLIENT_REQUEST_TIMEOUT = "fs.cosn.client.request.timeout";
public static final int DEFAULT_COSN_CLIENT_REQUEST_TIMEOUT = 5 * 60 * 1000; //5min
public static final int DEFAULT_COSN_CLIENT_REQUEST_TIMEOUT = 60 * 1000; //1min but client default 5min
public static final String COSN_CLIENT_REQUEST_TIMEOUT_THREAD_SIZE = "fs.cosn.client.request.timeout.thread.size";
public static final int DEFAULT_COSN_CLIENT_REQUEST_TIMEOUT_THREAD_SIZE = Runtime.getRuntime().availableProcessors() * 5;
public static final int DEFAULT_COSN_CLIENT_REQUEST_TIMEOUT_THREAD_SIZE = 10; // client default cpu*5

public static final String CUSTOMER_DOMAIN = "fs.cosn.customer.domain";
public static final String COSN_SERVER_SIDE_ENCRYPTION_ALGORITHM = "fs.cosn.server-side-encryption.algorithm";
Expand Down

0 comments on commit 4dff42b

Please sign in to comment.