You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/04/05 20:20:00 UTC

[jira] [Updated] (HDDS-1398) Concurrency issue in SCMConnectionManager#getValues

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

ASF GitHub Bot updated HDDS-1398:
---------------------------------
    Labels: pull-request-available  (was: )

> 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
>            Priority: Major
>              Labels: pull-request-available
>
> {{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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org