Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 181FB200CD1 for ; Wed, 12 Jul 2017 07:23:30 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 16A87167F4B; Wed, 12 Jul 2017 05:23:30 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8286C167F46 for ; Wed, 12 Jul 2017 07:23:29 +0200 (CEST) Received: (qmail 13813 invoked by uid 500); 12 Jul 2017 05:23:28 -0000 Mailing-List: contact dev-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 dev@zookeeper.apache.org Received: (qmail 13791 invoked by uid 99); 12 Jul 2017 05:23:28 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jul 2017 05:23:28 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3DA92E9438; Wed, 12 Jul 2017 05:23:28 +0000 (UTC) From: hanm To: dev@zookeeper.apache.org Reply-To: dev@zookeeper.apache.org References: In-Reply-To: Subject: [GitHub] zookeeper pull request #307: ZOOKEEPER-2770 ZooKeeper slow operation log Content-Type: text/plain Message-Id: <20170712052328.3DA92E9438@git1-us-west.apache.org> Date: Wed, 12 Jul 2017 05:23:28 +0000 (UTC) archived-at: Wed, 12 Jul 2017 05:23:30 -0000 Github user hanm commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/307#discussion_r126866390 --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumPeerConfig.java --- @@ -292,6 +293,8 @@ public void parseProperties(Properties zkProp) } } else if ((key.startsWith("server.") || key.startsWith("group") || key.startsWith("weight")) && zkProp.containsKey("dynamicConfigFile")) { throw new ConfigException("parameter: " + key + " must be in a separate dynamic config file"); + } else if(key.equals("warn.responseTime")) { --- End diff -- This is a new property, so it should be: * Documented - in particular mentions that this log can be disabled if set to -1. We don't want user to check code to figure out how to use this. * Add a test case to cover various code paths. Also, the name used here could be improved. I think something like request.warningthresholdms is more accurate. We already have fsync.warningthresholdms which in many ways has similar functionality of what's being added, so use that as a reference. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---