rodesai opened a new pull request, #16337:
URL: https://github.com/apache/kafka/pull/16337

   Each KafkaStreams instance maintains a map from threadId to state to use to 
aggregate to a KafkaStreams app state. The map is updated on every state 
change, and when a new thread is created. State change updates are done in a 
synchronized blocks, however the update that happens on thread creation is not, 
which can raise ConcurrentModificationException. This patch moves this update 
into the listener object and protects it using the object's lock. It also moves 
ownership of the state map into the listener so that its less likely that 
future changes access it without locking


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to