Github user liyinan926 commented on the pull request:

    https://github.com/apache/helix/pull/35#issuecomment-138976620
  
    @kishoreg I do have a reference to a `TaskStateModelFactory` instance, but 
I don't have reference to any `TaskStateModel` instances created by it though 
so I cannot call shutdown directly. It also seems the only place 
`TaskStateModelFactory.createStateTransitionHandler` is called is in 
`StateTransitionHandlerFactory.createAndAddSTransitionHandler`, which doesn't 
know about the `shutdown` method specific to `TaskStateModel`. I think what I 
can do is to add a `shutdown` method to `TaskStateModelFactory` and store 
references to all created `TaskStateModel` instances in the 
`TaskStateModelFactory` and shutdown all of them in 
`TaskStateModelFactory.shutdown`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to