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 5D9EB200B8D for ; Thu, 8 Sep 2016 23:53:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5C531160AAD; Thu, 8 Sep 2016 21:53:22 +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 AD4EE160ABD for ; Thu, 8 Sep 2016 23:53:21 +0200 (CEST) Received: (qmail 92840 invoked by uid 500); 8 Sep 2016 21:53:20 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 92781 invoked by uid 99); 8 Sep 2016 21:53:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Sep 2016 21:53:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9E8BA2C1B79 for ; Thu, 8 Sep 2016 21:53:20 +0000 (UTC) Date: Thu, 8 Sep 2016 21:53:20 +0000 (UTC) From: "Chris Douglas (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-10742) Measurement of lock held time in FsDatasetImpl MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 08 Sep 2016 21:53:22 -0000 [ https://issues.apache.org/jira/browse/HDFS-10742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Douglas updated HDFS-10742: --------------------------------- Attachment: HDFS-10742.017.patch Good catch, sorry forgot to reference the default. I was trying to follow [guidance|https://issues.apache.org/jira/browse/HDFS-9847?focusedCommentId=15195658&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15195658] in HDFS-9847 on the default type, but either way. Changed to {{long}}. > Measurement of lock held time in FsDatasetImpl > ---------------------------------------------- > > Key: HDFS-10742 > URL: https://issues.apache.org/jira/browse/HDFS-10742 > Project: Hadoop HDFS > Issue Type: Improvement > Components: datanode > Affects Versions: 3.0.0-alpha2 > Reporter: Chen Liang > Assignee: Chen Liang > Attachments: HDFS-10742.001.patch, HDFS-10742.002.patch, HDFS-10742.003.patch, HDFS-10742.004.patch, HDFS-10742.005.patch, HDFS-10742.006.patch, HDFS-10742.007.patch, HDFS-10742.008.patch, HDFS-10742.009.patch, HDFS-10742.010.patch, HDFS-10742.011.patch, HDFS-10742.012.patch, HDFS-10742.013.patch, HDFS-10742.014.patch, HDFS-10742.015.patch, HDFS-10742.016.patch, HDFS-10742.017.patch > > > This JIRA proposes to measure the time the of lock of {{FsDatasetImpl}} is held by a thread. Doing so will allow us to measure lock statistics. > This can be done by extending the {{AutoCloseableLock}} lock object in {{FsDatasetImpl}}. In the future we can also consider replacing the lock with a read-write lock. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org