ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ilya Kasnacheev <ilya.kasnach...@gmail.com>
Subject Re: Hopeless looping in TcpCommunicationSpi
Date Fri, 01 Sep 2017 15:39:50 GMT
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 <yzhdanov@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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message