Return-Path: X-Original-To: apmail-hadoop-yarn-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B1FCC173D8 for ; Thu, 17 Sep 2015 08:20:46 +0000 (UTC) Received: (qmail 68583 invoked by uid 500); 17 Sep 2015 08:20:46 -0000 Delivered-To: apmail-hadoop-yarn-dev-archive@hadoop.apache.org Received: (qmail 68503 invoked by uid 500); 17 Sep 2015 08:20:46 -0000 Mailing-List: contact yarn-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-dev@hadoop.apache.org Delivered-To: mailing list yarn-dev@hadoop.apache.org Received: (qmail 68485 invoked by uid 99); 17 Sep 2015 08:20:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Sep 2015 08:20:46 +0000 Date: Thu, 17 Sep 2015 08:20:46 +0000 (UTC) From: "Xianyin Xin (JIRA)" To: yarn-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (YARN-4177) yarn.util.Clock should not be used to time a duration or time interval MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Xianyin Xin created YARN-4177: --------------------------------- Summary: yarn.util.Clock should not be used to time a duration or time interval Key: YARN-4177 URL: https://issues.apache.org/jira/browse/YARN-4177 Project: Hadoop YARN Issue Type: Bug Reporter: Xianyin Xin There're many places uses Clock to time intervals, which is dangerous as commented by [~stevel@apache.org] in HADOOP-12409. Instead, we should use hadoop.util.Timer#monotonicNow() to get monotonic time. Or we could provide a MonotonicClock in yarn.util considering the consistency of code. -- This message was sent by Atlassian JIRA (v6.3.4#6332)