TheRoddyWMS / BatchEuphoria

A library to access different kinds of cluster backends
MIT License
3 stars 5 forks source link

ConcurrentModificationException in BEJM.queryJobStatesUsingCache #146

Open askask opened 4 years ago

askask commented 4 years ago

A ConcurrentModificationException is thrown when using queryJobStatesUsingCache, caused by accessing cachedStates :

java.util.ConcurrentModificationException: null
    at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:719)
    at java.util.LinkedHashMap$LinkedEntryIterator.next(LinkedHashMap.java:752)
    at java.util.LinkedHashMap$LinkedEntryIterator.next(LinkedHashMap.java:750)
    at java.util.HashMap.putMapEntries(HashMap.java:512)
    at java.util.HashMap.<init>(HashMap.java:490)
    at de.dkfz.roddy.execution.jobs.BatchEuphoriaJobManager.queryJobStatesUsingCache(BatchEuphoriaJobManager.groovy:414)
    at de.dkfz.roddy.execution.jobs.BatchEuphoriaJobManager.queryJobStatusAll(BatchEuphoriaJobManager.groovy:205)
    at de.dkfz.roddy.execution.jobs.BatchEuphoriaJobManager.queryJobStatusAll(BatchEuphoriaJobManager.groovy)
    at de.dkfz.tbi.otp.job.processing.ClusterJobSchedulerService$_queryAndLogAllClusterJobs_closure3.doCall(ClusterJobSchedulerService.groovy:210)
    at de.dkfz.tbi.otp.job.processing.ClusterJobSchedulerService$_queryAndLogAllClusterJobs_closure3.doCall(ClusterJobSchedulerService.groovy)
…