You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Jason Lowe (JIRA)" <ji...@apache.org> on 2016/08/16 19:52:20 UTC

[jira] [Commented] (HADOOP-13500) Concurrency issues when using Configuration iterator

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

Jason Lowe commented on HADOOP-13500:
-------------------------------------

See TEZ-3413 for a sample backtrace.  I believe the fix is to simply lock the Property object while iterating it within the Configuration#iterator method, but I haven't thought through all of the potential interactions to see if we don't also have to lock the Configuration object itself as well or do something even more complicated.


> Concurrency issues when using Configuration iterator
> ----------------------------------------------------
>
>                 Key: HADOOP-13500
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13500
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: conf
>            Reporter: Jason Lowe
>
> It is possible to encounter a ConcurrentModificationException while trying to iterate a Configuration object.  The iterator method tries to walk the underlying Property object without proper synchronization, so another thread simultaneously calling the set method can trigger it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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