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 43546200CB4 for ; Mon, 22 May 2017 22:48:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 421CF160BD4; Mon, 22 May 2017 20:48:08 +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 9127E160BD5 for ; Mon, 22 May 2017 22:48:07 +0200 (CEST) Received: (qmail 41444 invoked by uid 500); 22 May 2017 20:48:05 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 41050 invoked by uid 99); 22 May 2017 20:48:05 -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; Mon, 22 May 2017 20:48:05 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 7B17EE3AA4; Mon, 22 May 2017 20:48:05 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: wangda@apache.org To: common-commits@hadoop.apache.org Date: Mon, 22 May 2017 20:48:08 -0000 Message-Id: <4bb383676a19482e85a01410ffa77f14@git.apache.org> In-Reply-To: <479084d7b60c42579b2d200c2d117203@git.apache.org> References: <479084d7b60c42579b2d200c2d117203@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [04/50] hadoop git commit: HADOOP-14413. Add Javadoc comment for jitter parameter on CachingGetSpaceUsed (Contributed by Erik Krogen via Daniel Templeton) archived-at: Mon, 22 May 2017 20:48:08 -0000 HADOOP-14413. Add Javadoc comment for jitter parameter on CachingGetSpaceUsed (Contributed by Erik Krogen via Daniel Templeton) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/09f28da2 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/09f28da2 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/09f28da2 Branch: refs/heads/YARN-5734 Commit: 09f28da2d2aae1487bae85ff110794f8346f92a4 Parents: 4aae2d4 Author: Daniel Templeton Authored: Thu May 11 11:02:20 2017 -0700 Committer: Daniel Templeton Committed: Thu May 11 12:06:06 2017 -0700 ---------------------------------------------------------------------- .../src/main/java/org/apache/hadoop/fs/CachingGetSpaceUsed.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/09f28da2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CachingGetSpaceUsed.java ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CachingGetSpaceUsed.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CachingGetSpaceUsed.java index a2b6980..92476d7 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CachingGetSpaceUsed.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CachingGetSpaceUsed.java @@ -65,6 +65,9 @@ public abstract class CachingGetSpaceUsed implements Closeable, GetSpaceUsed { * * @param path the path to check disk usage in * @param interval refresh the disk usage at this interval + * @param jitter randomize the refresh interval timing by this amount; + * the actual interval will be chosen uniformly between + * {@code interval-jitter} and {@code interval+jitter} * @param initialUsed use this value until next refresh * @throws IOException if we fail to refresh the disk usage */ --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-commits-help@hadoop.apache.org