Yes, the same problem is possible with server-server communication. I've amended my pull request to include a test for that.
There are already Thread.sleeps() in this look so I propose to add a countdown to maxConnectionAttempts instead of while(true) Ideally we should find a way to log last error, such issues are hard to debug otherwise. -- Ilya Kasnacheev 2017-09-01 15:27 GMT+03:00 Yakov Zhdanov <yzhda...@apache.org>: > Ilya, I reviewed your test and I now see the point. > > Is the same possible with server-server? Or failure process will be > initiated for remote node by local one? > > Will the following work for client? If connection fails then client takes a > pause for 1 sec with Thread.sleep() and takes another attempt. If > maxConnectionAttempts (3 by default) fails then client stops and restart > itself. > > --Yakov >