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