Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F3557109C1 for ; Mon, 21 Oct 2013 09:54:45 +0000 (UTC) Received: (qmail 43167 invoked by uid 500); 21 Oct 2013 09:54:43 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 43132 invoked by uid 500); 21 Oct 2013 09:54:43 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 43119 invoked by uid 99); 21 Oct 2013 09:54:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Oct 2013 09:54:42 +0000 Date: Mon, 21 Oct 2013 09:54:42 +0000 (UTC) From: "qus-jiawei (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-5341) DirectoryScanner hold the object lock dataset too long in scan,it make the datanode turn into deadnode and block all reciving thread MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-5341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] qus-jiawei updated HDFS-5341: ----------------------------- Attachment: HDFS-5341.000.patch First patch.Add block file length to scaninfo class and get the length from async disk scan. > DirectoryScanner hold the object lock dataset too long in scan,it make the datanode turn into deadnode and block all reciving thread > ------------------------------------------------------------------------------------------------------------------------------------- > > Key: HDFS-5341 > URL: https://issues.apache.org/jira/browse/HDFS-5341 > Project: Hadoop HDFS > Issue Type: Bug > Components: datanode > Affects Versions: 2.0.4-alpha > Reporter: qus-jiawei > Labels: deadlock > Fix For: 0.24.0 > > Attachments: HDFS-5341.000.patch > > > When DirectoryScanner doing the scan function, it holding the dataset to diff the block info between memory and disk.But it do a lot of disk operation because it call the file's getlength funciton. > So,such disk operation should move to the diskreport. -- This message was sent by Atlassian JIRA (v6.1#6144)