Nikita Shupletsov created KAFKA-20764:
-----------------------------------------
Summary: StateUpdater moves tasks between collections unatomically
which can lead to duplicates
Key: KAFKA-20764
URL: https://issues.apache.org/jira/browse/KAFKA-20764
Project: Kafka
Issue Type: Bug
Components: streams
Affects Versions: 4.3.1
Reporter: Nikita Shupletsov
we update task collections without acquiring the lock here
[https://github.com/apache/kafka/blob/trunk/streams/src/main/java/org/apache/kafka/streams/processor/internals/DefaultStateUpdater.java#L679-L680]
and here
[https://github.com/apache/kafka/blob/trunk/streams/src/main/java/org/apache/kafka/streams/processor/internals/DefaultStateUpdater.java#L694-L695.]
Which may causeĀ "Task not found in the state updater. This indicates a bug."
due to duplicates in `tasks()`(the same task is present in two collections)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)