diff --git a/src/main/java/org/apache/hadoop/fs/CosNConfigKeys.java b/src/main/java/org/apache/hadoop/fs/CosNConfigKeys.java index 2d0aab0..a754ab4 100644 --- a/src/main/java/org/apache/hadoop/fs/CosNConfigKeys.java +++ b/src/main/java/org/apache/hadoop/fs/CosNConfigKeys.java @@ -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";