It seems that if a connection comes in before master container is fully ready, it often interrupts the printlnAndGetResponse() thread. While it is unclear who raises the interrupt, the result is a premature timeout for requests from master to slave. This causes slaves to be kicked out and bad things to happen. This PR fixes this by enforcing the timeout and pushing the interrupt up for handling.
It seems that if a connection comes in before master container is fully ready, it often interrupts the
printlnAndGetResponse()
thread. While it is unclear who raises the interrupt, the result is a premature timeout for requests from master to slave. This causes slaves to be kicked out and bad things to happen. This PR fixes this by enforcing the timeout and pushing the interrupt up for handling.