Doroszlai, Attila created HDDS-1398:
---------------------------------------

             Summary: Concurrency issue in SCMConnectionManager#getValues
                 Key: HDDS-1398
                 URL: https://issues.apache.org/jira/browse/HDDS-1398
             Project: Hadoop Distributed Data Store
          Issue Type: Bug
            Reporter: Doroszlai, Attila
            Assignee: Doroszlai, Attila


{{testStartStopDatanodeStateMachine}} is flaky, causing [occasional pre-commit 
build 
failures|https://builds.apache.org/job/hadoop-multibranch/job/PR-691/1/artifact/out/patch-unit-hadoop-hdds_container-service.txt].
  HDDS-1332 added some logging to find out more about the cause.

I think the problem is not test-specific, and is caused by the following: 
{{SCMConnectionManager#scmMachines}} is a plain {{HashMap}}, guarded by a 
{{ReadWriteLock}} in most places where it's used, except {{getValues()}}.  The 
method also returns the values collection without any write protection (though 
currently none of the callers modify it).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to