hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yi Liu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-6783) Fix not really wait for rescan in HDFS CacheReplicationModitor
Date Thu, 31 Jul 2014 07:40:38 GMT

    [ https://issues.apache.org/jira/browse/HDFS-6783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14080614#comment-14080614
] 

Yi Liu commented on HDFS-6783:
------------------------------

How about we distinguish these two kinds of rescan (triggered by needsRescan, or interval
time up), and in {{waitForRescanIfNeeded}} we only check the rescan triggered by {{needsRescan}}.

> Fix not really wait for rescan in HDFS CacheReplicationModitor
> --------------------------------------------------------------
>
>                 Key: HDFS-6783
>                 URL: https://issues.apache.org/jira/browse/HDFS-6783
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: caching
>    Affects Versions: 3.0.0
>            Reporter: Yi Liu
>            Assignee: Yi Liu
>         Attachments: HDFS-6783.001.patch
>
>
> In monitor thread, needsRescan is set to false before real scan starts, so 
> for {{waitForRescanIfNeeded}} will return for the first condition:
> {code}
> if (!needsRescan) {
>   return;
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message