You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Elliott Clark (JIRA)" <ji...@apache.org> on 2015/09/16 02:25:46 UTC
[jira] [Resolved] (HDFS-7492) If multiple threads call
FsVolumeList#checkDirs at the same time, we should only do checkDirs once
and give the results to all waiting threads
[ https://issues.apache.org/jira/browse/HDFS-7492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elliott Clark resolved HDFS-7492.
---------------------------------
Resolution: Duplicate
Fixed in HDFS-7531. Since there are no more locks on FsVolumeList there isn't a contention.
> If multiple threads call FsVolumeList#checkDirs at the same time, we should only do checkDirs once and give the results to all waiting threads
> ----------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HDFS-7492
> URL: https://issues.apache.org/jira/browse/HDFS-7492
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: datanode
> Reporter: Colin Patrick McCabe
> Assignee: Elliott Clark
> Priority: Minor
>
> checkDirs is called when we encounter certain I/O errors. It's rare to get just a single I/O error... normally you start getting many errors when a disk is going bad. For this reason, we shouldn't start a new checkDirs scan for each error. Instead, if multiple threads call FsVolumeList#checkDirs at around the same time, we should only do checkDirs once and give the results to all the waiting threads.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)