twitter-archive/ostrich

LatchedStatsListener thread

mkonicek opened this issue · 2 comments

LatchedStatsListener thread is not running as daemon and therefore blocks the VM from exiting even after AdminHttpService.shutdown() has been called and the main thread has finished. This matters when running the AdminHttpService from an interactive session (such as sbt).

The workaround (or intended solution?) is to call ServiceTracker.shutdown().

Calling ServiceTracker.shutdown() is our normal shutdown procedure, but this seems like it should be changed anyway.

i'm +1 on a patch to make the thread be a daemon.