zookeeper-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [zookeeper] jhuan31 commented on a change in pull request #986: ZOOKEEPER-3243: Add server-side request throttling
Date Mon, 01 Jul 2019 18:41:45 GMT
jhuan31 commented on a change in pull request #986: ZOOKEEPER-3243: Add server-side request
throttling
URL: https://github.com/apache/zookeeper/pull/986#discussion_r299170081
 
 

 ##########
 File path: zookeeper-server/src/main/java/org/apache/zookeeper/server/ZooKeeperServer.java
 ##########
 @@ -98,6 +98,14 @@
         Environment.logEnv("Server environment:", LOG);
     }
 
+    private static final String SHUTDOWN_TIMEOUT = "zookeeper.shutdownTimeout";
+    private static int shutdownTimeout = 10000;
+
+    static {
+        shutdownTimeout = Integer.getInteger(SHUTDOWN_TIMEOUT, 10000);
+        LOG.info(SHUTDOWN_TIMEOUT + "=" + shutdownTimeout);
+    }
+
 
 Review comment:
   this has been moved to RequestThrottler

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message