[ https://issues.apache.org/jira/browse/KAFKA-13856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17527841#comment-17527841 ]
Justinwins commented on KAFKA-13856: ------------------------------------ HashMap cannot be "put" and traversed by two threads concurrently, while `Map<String, List<Checkpoint>> checkpointsPerConsumerGroup` is accessed by scheduler thread ,and workerTask thread concurrently > MirrorCheckpointTask meets ConcurrentModificationException > ---------------------------------------------------------- > > Key: KAFKA-13856 > URL: https://issues.apache.org/jira/browse/KAFKA-13856 > Project: Kafka > Issue Type: Bug > Components: mirrormaker > Affects Versions: 3.0.1 > Reporter: Justinwins > Priority: Minor > Labels: bug > > In MirrorCheckpointTask.java, the field > private Map<String, List<Checkpoint>> checkpointsPerConsumerGroup = new > HashMap<> > may be modified ( used with put API) , and traversed by two different > threads at the same time. > Clearly,this would incur ConcurrentModificationException. > > This bug still exists in Trunk branch. -- This message was sent by Atlassian Jira (v8.20.7#820007)