mirror of
https://github.com/actiontech/dble.git
synced 2026-01-05 20:30:40 -06:00
fix: grpcTimeout parameter validation
This commit is contained in:
@@ -73,6 +73,10 @@ public final class ClusterController {
|
||||
if (Strings.isNullOrEmpty(clusterConfig.getRootPath())) {
|
||||
StartProblemReporter.getInstance().addError("rootPath need to set in cluster.cnf when clusterEnable is true");
|
||||
}
|
||||
int grpcTimeout = clusterConfig.getGrpcTimeout();
|
||||
if (grpcTimeout < 1) {
|
||||
StartProblemReporter.getInstance().addError("grpcTimeout should be greater than 1");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user