File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
common/src/main/java/alluxio/conf
server/worker/src/main/java/alluxio/worker Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -3508,6 +3508,13 @@ public String toString() {
3508
3508
.setConsistencyCheckLevel (ConsistencyCheckLevel .WARN )
3509
3509
.setScope (Scope .WORKER )
3510
3510
.build ();
3511
+ public static final PropertyKey WORKER_REGISTRY_GET_TIMEOUT_MS =
3512
+ new Builder (Name .WORKER_REGISTRY_GET_TIMEOUT_MS )
3513
+ .setDefaultValue ("600000" )
3514
+ .setDescription ("The timeout of getting a worker from the registry." )
3515
+ .setConsistencyCheckLevel (ConsistencyCheckLevel .IGNORE )
3516
+ .setScope (Scope .WORKER )
3517
+ .build ();
3511
3518
3512
3519
//
3513
3520
// Proxy related properties
@@ -5935,6 +5942,8 @@ public static final class Name {
5935
5942
"alluxio.worker.ufs.instream.cache.enabled" ;
5936
5943
public static final String WORKER_UFS_INSTREAM_CACHE_MAX_SIZE =
5937
5944
"alluxio.worker.ufs.instream.cache.max.size" ;
5945
+ public static final String WORKER_REGISTRY_GET_TIMEOUT_MS =
5946
+ "alluxio.worker.registry.get.timeout" ;
5938
5947
5939
5948
//
5940
5949
// Proxy related properties
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ public final class AlluxioWorkerProcess implements WorkerProcess {
116
116
// registered at worker registry, so the maximum timeout here is set to the multiply of
117
117
// the number of factories by the default timeout of getting a worker from the registry.
118
118
CommonUtils .invokeAll (callables ,
119
- (long ) callables .size () * 10 * Constants . DEFAULT_REGISTRY_GET_TIMEOUT_MS );
119
+ (long ) callables .size () * ServerConfiguration . getLong ( PropertyKey . WORKER_REGISTRY_GET_TIMEOUT_MS ) );
120
120
121
121
// Setup web server
122
122
mWebServer =
You can’t perform that action at this time.
0 commit comments