From 4dff42b77681c0a80435447431ccc07175e730f9 Mon Sep 17 00:00:00 2001 From: vintmd Date: Wed, 21 Aug 2024 11:15:20 +0800 Subject: [PATCH] change the default value of request time out (#155) --- src/main/java/org/apache/hadoop/fs/CosNConfigKeys.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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";