[ 
https://issues.apache.org/jira/browse/KAFKA-12509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17305590#comment-17305590
 ] 

A. Sophie Blee-Goldman commented on KAFKA-12509:
------------------------------------------------

Sure thing, feel free to pick this up. I added you as a contributor so you can 
self-assign tickets from now on. I recommend checking out the StateDirectory 
class and reading through some of the code there to get oriented. The map I'm 
referring to in this ticket is called _lockedTasksToStreamThreadOwner_ -- we 
can replace the String (thread name) value with a Thread reference. Let me know 
if you have any questions!

> 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)

Reply via email to