I had problems with this as well. Check out https://github.com/apache/incubator-druid/pull/6798 for some ways to handle this.
On Wed, Dec 4, 2019 at 9:22 AM Krishna Likhitha Katakam < krishna.likhi...@phonepe.com> wrote: > Hi, > > I have a basic question: > When we write a custom Druid extensions module, if we have some > resources (like an HTTP client with non-daemon threads) created as part of > the module, there is no close() method currently where we can safely clean > up the resources. Could anyone help how to do this? > > Our use-case: > We have an extension used as part of Kafka Supervisor. We need to do some > clean up for the Peon process to stop successfully. Else, the peon process > is stuck after SUCCESS state. >