[ 
https://issues.apache.org/jira/browse/KAFKA-21202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ziyun Fu reassigned KAFKA-21202:
--------------------------------

    Assignee: Ziyun Fu  (was: Chia-Ping Tsai)

> 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: Ziyun Fu
>            Priority: Minor
>
> 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