Github user mebe commented on the issue:

    https://github.com/apache/helix/pull/300
  
    Thanks!
    
    Any suggestions for a better fix? Currently I have this beautiful piece of 
Scala code in my shutdown hooks and I'd like to get rid of it 🙂 
    
    ```scala
    private def shutDownRunawayHelixThread(): Unit = {
      val runawayThreadField = classOf[CallbackHandler]
        .getDeclaredField("SubscribeChangeEventProcessor")
    
      runawayThreadField.setAccessible(true)
      runawayThreadField
        .get(null)
        .asInstanceOf[DedupEventProcessor[_, _]]
        .shutdown()
    }
    ```



---

Reply via email to