Skip to content

Commit

Permalink
KAFKA-14862 (HOTFIX): Fix ConcurrentModificationException (#13734)
Browse files Browse the repository at this point in the history
Reviewers: Walker Carlson <<wcarlson@confluent.io>
  • Loading branch information
mjsax committed May 21, 2023
1 parent 24dac53 commit 4fb278c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@

import java.time.Duration;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

import static org.apache.kafka.streams.internals.ApiUtils.prepareMillisCheckFailMsgPrefix;
import static org.apache.kafka.streams.internals.ApiUtils.validateMillisecondDuration;
Expand All @@ -60,7 +60,7 @@ class KStreamImplJoin {
private final boolean rightOuter;

static class TimeTrackerSupplier {
private final Map<TaskId, TimeTracker> tracker = new HashMap<>();
private final Map<TaskId, TimeTracker> tracker = new ConcurrentHashMap<>();

public TimeTracker get(final TaskId taskId) {
return tracker.computeIfAbsent(taskId, taskId1 -> new TimeTracker());
Expand Down

0 comments on commit 4fb278c

Please sign in to comment.