You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "A. Sophie Blee-Goldman (Jira)" <ji...@apache.org> on 2021/03/19 06:07:00 UTC
[jira] [Created] (KAFKA-12509) Tighten up StateDirectory thread
locking
A. Sophie Blee-Goldman created KAFKA-12509:
----------------------------------------------
Summary: Tighten up StateDirectory thread locking
Key: KAFKA-12509
URL: https://issues.apache.org/jira/browse/KAFKA-12509
Project: Kafka
Issue Type: Improvement
Components: streams
Reporter: A. Sophie Blee-Goldman
The StateDirectory class is responsible for tracking the ownership of task directories, which may be locked by StreamThreads, the cleaner thread, or a user thread via KafkaStreams.cleanup(). It maintains a map from TaskId to the name of the owning thread.
We should consider tightening this up a bit and using a reference to the actual Thread instead of just the name.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)