You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Ziyun Fu (Jira)" <ji...@apache.org> on 2026/10/02 17:09:00 UTC
[jira] [Assigned] (KAFKA-21202) listTransactionStates doesn't need to hold the lock so long
[ 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)