Chia-Ping Tsai created KAFKA-21202:
--------------------------------------

             Summary: listTransactionStates doesn't need to hold the lock so 
long
                 Key: KAFKA-21202
                 URL: https://issues.apache.org/jira/browse/KAFKA-21202
             Project: Kafka
          Issue Type: Improvement
            Reporter: Chia-Ping Tsai
            Assignee: Chia-Ping Tsai


We could create a snapshot of `transactionMetadataCache` and then release the 
lock to complete the subsequent filter.  The per-partition maps are 
{{{}ConcurrentHashMap{}}}, so iterating them outside the lock is safe.

 



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

Reply via email to