Skip to content

Commit

Permalink
#109 Fix stop timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
markrmiller committed Jul 13, 2020
1 parent 88da823 commit 0b0ade4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,14 +307,14 @@ private void init(int port) {
qtp.setLowThreadsThreshold(Integer.getInteger("solr.lowContainerThreadsThreshold", -1)); // we don't use this or connections will get cut
qtp.setMinThreads(Integer.getInteger("solr.minContainerThreads", 2));
qtp.setIdleTimeout(Integer.getInteger("solr.containerThreadsIdle", THREAD_POOL_MAX_IDLE_TIME_MS));
qtp.setStopTimeout(1);
qtp.setStopTimeout(60);
qtp.setReservedThreads(-1); // -1 auto sizes, important to keep
}

server = new Server(qtp);


server.setStopTimeout(1); // will wait gracefull for stoptime / 2, then interrupts
server.setStopTimeout(60); // will wait gracefull for stoptime / 2, then interrupts
assert config.stopAtShutdown;
server.setStopAtShutdown(config.stopAtShutdown);

Expand Down

0 comments on commit 0b0ade4

Please sign in to comment.