I've got a build system that uses SolrJ. The currently running version uses CommonsHttpSolrServer for everything. In the name of performance, I am writing a new version that uses CommonsHttpSolrServer for queries and StreamingUpdateSolr for updates.

One of the things that my program does is handle termination signals gracefully, with a static boolean value called runFlag that tells it that it should no longer be running. Each of my threads watches that value and exits gracefully when runFlag is false. This works perfectly fine if I use CHSS for everything, but when I use SUSS, it takes exactly 60 seconds for the program to close.

Is there any way to get get the threads within SUSS objects to immediately exit without creating other issues? Alternatively, if immediate isn't possible, the exit could take 1-2 seconds. I could not find any kind of method in the API that closes down the object.

Thanks,
Shawn

Reply via email to