cadonna commented on code in PR #12270:
URL: https://github.com/apache/kafka/pull/12270#discussion_r892848967
##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/DefaultStateUpdater.java:
##########
@@ -57,7 +58,7 @@ private class StateUpdaterThread extends Thread {
private final ChangelogReader changelogReader;
private final AtomicBoolean isRunning = new AtomicBoolean(true);
private final Consumer<Set<TopicPartition>> offsetResetter;
- private final Map<TaskId, Task> updatingTasks = new HashMap<>();
+ private final Map<TaskId, Task> updatingTasks = new
ConcurrentHashMap<>();
Review Comment:
To allow the main thread reading the map in thread-safe way.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]