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

Ted Yu commented on HADOOP-10501:
---------------------------------

I did see VisibleForTesting annotation.

Is it expected that tests may see inconsistent Handler array ?

> Server#getHandlers() accesses handlers without synchronization
> --------------------------------------------------------------
>
>                 Key: HADOOP-10501
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10501
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>
> {code}
>   Iterable<? extends Thread> getHandlers() {
>     return Arrays.asList(handlers);
>   }
> {code}
> All the other methods accessing handlers are synchronized methods.



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

Reply via email to