allthingssecurity commented on PR #30704: URL: https://github.com/apache/camel/pull/30704#issuecomment-7125647164
One more small commit: ac0f5dc387. The processor in `testShutdownInterruptsTheRunnableServingAConnection` used `Thread.sleep(20000)`. It now waits on a `CountDownLatch` that nobody counts down, which can be interrupted the same way, since the project does not use `Thread.sleep` in tests. The test still fails when `doShutdown` does not call `shutdownNow` on the executors itself. The two stop test classes 10 times in one JVM: 80 run, 0 failures. A correction to my last reply, about the smaller window I left open (an accept thread of the previous start that calls `validateConsumer` only after a restart). The owner check does not make it smaller, as it only covers the bind thread. What limits it is that the stop ends the accept loop after its current iteration (it clears `running` and closes the server socket), so only a connection that `accept()` returned just before the stop can get there, and only if the stop and the next start both finish before that thread reaches `validateConsumer`. I still think that is better as a follow-up: the accept thread could take the two executors of its start when it is created. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
