[ https://issues.apache.org/jira/browse/YARN-6171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15868919#comment-15868919 ]
Miklos Szegedi commented on YARN-6171: -------------------------------------- Thank you, [~kasha]. Yes, it does. In order to be consistent and atomic, we have to return one single copy from the critical section at the expense of some memory and cpu. > ConcurrentModificationException in ApplicationMasterService.allocate > -------------------------------------------------------------------- > > Key: YARN-6171 > URL: https://issues.apache.org/jira/browse/YARN-6171 > Project: Hadoop YARN > Issue Type: Bug > Components: fairscheduler > Affects Versions: 3.0.0-alpha2 > Reporter: Miklos Szegedi > Assignee: Miklos Szegedi > Attachments: YARN-6171.000.patch, YARN-6171.001.patch, > YARN-6171.002.patch, YARN-6171.003.patch > > > I have noticed an exception that closes the Application Master occasionally > with Fair scheduler. > {code} > Caused by: > org.apache.hadoop.ipc.RemoteException(java.util.ConcurrentModificationException): > java.util.ConcurrentModificationException > at java.util.HashMap$HashIterator.nextEntry(HashMap.java:922) > at java.util.HashMap$KeyIterator.next(HashMap.java:956) > at > org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler.allocate(FairScheduler.java:1005) > at > org.apache.hadoop.yarn.server.resourcemanager.ApplicationMasterService.allocate(ApplicationMasterService.java:532) > at > org.apache.hadoop.yarn.api.impl.pb.service.ApplicationMasterProtocolPBServiceImpl.allocate(ApplicationMasterProtocolPBServiceImpl.java:60) > at > org.apache.hadoop.yarn.proto.ApplicationMasterProtocol$ApplicationMasterProtocolService$2.callBlockingMethod(ApplicationMasterProtocol.java:99) > at > org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:617) > at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1073) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org