[ https://issues.apache.org/jira/browse/HDFS-15249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17071455#comment-17071455 ]
Toshihiro Suzuki edited comment on HDFS-15249 at 3/31/20, 4:37 AM: ------------------------------------------------------------------- [~weichiu] Thank you for taking a look at this. Actually, I didn't see any Exceptions from this issue. When I checked the source code for another issue, I found this issue. Thanks. was (Author: brfrn169): [~weichiu] Thank you for taking look at this. Actually, I didn't see any Exceptions from this issue. When I checked the source code for another issue, I found this issue. Thanks. > 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 > > 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-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org