[ https://issues.apache.org/jira/browse/YARN-1374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13813346#comment-13813346 ]
Steve Loughran commented on YARN-1374: -------------------------------------- [~bikassaha] -if we clone the list before iterating, the newly added siblings won't cause problems during the init or start operations -they won't get called. But: if you do then add an uninited service during init, it won't get inited; add uninited or inited to start they won't get started. Maybe: allow an addition, but the service you add must always be in the same state of the composite service. That way, if you do add a new service -you have to get it into the correct state before the add() call. > Resource Manager fails to start due to ConcurrentModificationException > ---------------------------------------------------------------------- > > Key: YARN-1374 > URL: https://issues.apache.org/jira/browse/YARN-1374 > Project: Hadoop YARN > Issue Type: Bug > Components: resourcemanager > Affects Versions: 2.3.0 > Reporter: Devaraj K > Assignee: Karthik Kambatla > Priority: Blocker > Attachments: yarn-1374-1.patch, yarn-1374-1.patch > > > Resource Manager is failing to start with the below > ConcurrentModificationException. > {code:xml} > 2013-10-30 20:22:42,371 INFO org.apache.hadoop.util.HostsFileReader: > Refreshing hosts (include/exclude) list > 2013-10-30 20:22:42,376 INFO org.apache.hadoop.service.AbstractService: > Service ResourceManager failed in state INITED; cause: > java.util.ConcurrentModificationException > java.util.ConcurrentModificationException > at > java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372) > at java.util.AbstractList$Itr.next(AbstractList.java:343) > at > java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010) > at > org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107) > at > org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceInit(ResourceManager.java:187) > at > org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) > at > org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:944) > 2013-10-30 20:22:42,378 INFO > org.apache.hadoop.yarn.server.resourcemanager.RMHAProtocolService: > Transitioning to standby > 2013-10-30 20:22:42,378 INFO > org.apache.hadoop.yarn.server.resourcemanager.RMHAProtocolService: > Transitioned to standby > 2013-10-30 20:22:42,378 FATAL > org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Error starting > ResourceManager > java.util.ConcurrentModificationException > at > java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372) > at java.util.AbstractList$Itr.next(AbstractList.java:343) > at > java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010) > at > org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107) > at > org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceInit(ResourceManager.java:187) > at > org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) > at > org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:944) > 2013-10-30 20:22:42,379 INFO > org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: SHUTDOWN_MSG: > /************************************************************ > SHUTDOWN_MSG: Shutting down ResourceManager at HOST-10-18-40-24/10.18.40.24 > ************************************************************/ > {code} -- This message was sent by Atlassian JIRA (v6.1#6144)