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 98F72200BF1 for ; Tue, 20 Dec 2016 04:29:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 95C9D160B30; Tue, 20 Dec 2016 03:29:05 +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 E3600160B21 for ; Tue, 20 Dec 2016 04:29:04 +0100 (CET) Received: (qmail 70344 invoked by uid 500); 20 Dec 2016 03:28:59 -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 70292 invoked by uid 99); 20 Dec 2016 03:28:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Dec 2016 03:28:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9380B2C03E4 for ; Tue, 20 Dec 2016 03:28:58 +0000 (UTC) Date: Tue, 20 Dec 2016 03:28:58 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-11182) Update DataNode to use DatasetVolumeChecker MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 20 Dec 2016 03:29:05 -0000 [ https://issues.apache.org/jira/browse/HDFS-11182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15763091#comment-15763091 ] ASF GitHub Bot commented on HDFS-11182: --------------------------------------- Github user xiaoyuyao commented on a diff in the pull request: https://github.com/apache/hadoop/pull/168#discussion_r93166028 --- Diff: hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java --- @@ -2051,14 +2044,13 @@ public void shutdown() { * Check if there is a disk failure asynchronously and if so, handle the error */ public void checkDiskErrorAsync() { - synchronized(checkDiskErrorMutex) { - checkDiskErrorFlag = true; - if(checkDiskErrorThread == null) { - startCheckDiskErrorThread(); - checkDiskErrorThread.start(); - LOG.info("Starting CheckDiskError Thread"); - } - } + volumeChecker.checkAllVolumesAsync( + data, (healthyVolumes, failedVolumes) -> { + LOG.info("checkDiskErrorAsync callback got {} failed volumes: {}", + failedVolumes.size(), failedVolumes); + lastDiskErrorCheck = Time.monotonicNow(); --- End diff -- should this be timer.monotonicNow(); > Update DataNode to use DatasetVolumeChecker > ------------------------------------------- > > Key: HDFS-11182 > URL: https://issues.apache.org/jira/browse/HDFS-11182 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: datanode > Reporter: Arpit Agarwal > Assignee: Arpit Agarwal > > Update DataNode to use the DatasetVolumeChecker class introduced in HDFS-11149 to parallelize disk checks. -- 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