[
https://issues.apache.org/jira/browse/KAFKA-12509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17309964#comment-17309964
]
Ketul Gupta commented on KAFKA-12509:
-------------------------------------
[~ableegoldman] . I have changed the map to have thread reference and its
usages in the StateDirectory class. I checked for usage of the map outside the
class or in tests , i couldn't find it. Please review it.
> 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
> Assignee: Ketul Gupta
> Priority: Minor
> Labels: newbie
>
> 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)