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 "Akira Ajisaka (Jira)" <ji...@apache.org> on 2020/04/07 05:39:00 UTC

[jira] [Resolved] (HDFS-15249) ThrottledAsyncChecker is not thread-safe.

     [ https://issues.apache.org/jira/browse/HDFS-15249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Akira Ajisaka resolved HDFS-15249.
----------------------------------
    Fix Version/s: 3.4.0
     Hadoop Flags: Reviewed
       Resolution: Fixed

Merged the PR into trunk. Thanks [~brfrn169] for the contribution and thanks [~weichiu] for the review.

> ThrottledAsyncChecker is not thread-safe.
> -----------------------------------------
>
>                 Key: HDFS-15249
>                 URL: https://issues.apache.org/jira/browse/HDFS-15249
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: federation
>            Reporter: Toshihiro Suzuki
>            Assignee: Toshihiro Suzuki
>            Priority: Major
>             Fix For: 3.4.0
>
>
> ThrottledAsyncChecker should be thread-safe because it can be used by multiple threads when we have multiple namespaces.
> *checksInProgress* and *completedChecks* are respectively HashMap and WeakHashMap which are not thread-safe. So we need to put them in synchronized block whenever we access them.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org