Chia-Ping Tsai created KAFKA-21184:
--------------------------------------

             Summary: Fix the race condition in share session
                 Key: KAFKA-21184
                 URL: https://issues.apache.org/jira/browse/KAFKA-21184
             Project: Kafka
          Issue Type: Bug
            Reporter: Chia-Ping Tsai
            Assignee: Apoorv Mittal


{{maybeRemoveAndNotifyListenersOnMemberLeave}} reads the session under the 
lock, but {{onMemberLeave}} runs outside it. If another thread replaces the 
session in between, {{onMemberLeave}} -> {{releaseSession}} -> 
{{cache.remove(key)}} still removes by key, so it removes the new session 
instead of the old one.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to