From notifications-return-575-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Mon Jul 1 18:41:46 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id DDF1E180670 for ; Mon, 1 Jul 2019 20:41:45 +0200 (CEST) Received: (qmail 43372 invoked by uid 500); 1 Jul 2019 18:41:45 -0000 Mailing-List: contact notifications-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list notifications@zookeeper.apache.org Received: (qmail 43363 invoked by uid 99); 1 Jul 2019 18:41:45 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jul 2019 18:41:45 +0000 From: GitBox To: notifications@zookeeper.apache.org Subject: [GitHub] [zookeeper] jhuan31 commented on a change in pull request #986: ZOOKEEPER-3243: Add server-side request throttling Message-ID: <156200650521.1147.13425519898250513854.gitbox@gitbox.apache.org> Date: Mon, 01 Jul 2019 18:41:45 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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