Well, it seems like you start two nodes on the same host, and as first
node occupies default thin client port (10800) the second node takes
the next one (10801).

I believe you use 127.0.0.1 or something like this for your thin client
host lists which effectively means 127.0.0.1:10800. So, your thin client
just is not aware about the second node which is using 10801 port once
the first node is dead. To fix it you can write a second address in your
client configuration: 127.0.0.1:10800,127.0.0.1:10801 or simply
127.0.0.1:10800..10801.

Hope, it helps.

Best Regards,
Igor


On Fri, Jun 28, 2019 at 10:14 AM rick_tem <rvinc...@temenos.com> wrote:

> Hi,
>
> I am seeing that a thin client cannot reconnect (on the same port) after a
> server shutdown.  I have 1 backup enabled and load some data in the cache
> on
> startup.  Replication procedure is:
> 1) Start server 1
> 2) Try thin client --> it retrieves data
> 3) Start server 2
> 4) Kill server 1 (Server 2 output below)
> 5) Try thin client --> fails with :
> org.apache.ignite.client.ClientConnectionException: Ignite cluster is
> unavailable
>         at
>
> org.apache.ignite.internal.client.thin.TcpClientChannel.<init>(TcpClientChannel.java:114)
> ~[ignite-core-2.7.5.jar:2.7.5]
> 6) Try thick client --> works fine
>
> Almost certainly this is due to the connection port for the thin client (as
> server 2 thin client listener cannot start on the same port).  But how do I
> discover which port is opened on server 2 for thin clients?
>
> Thanks,
> Rick
>
> Server 2
> [08:51:40] Topology snapshot [ver=2, locNode=3da900bd, servers=2,
> clients=0,
> state=ACTIVE, CPUs=4, offheap=9.3GB, heap=7.9GB]
> StartIgnite-->Ignite Initialization.  Got cache Tables from Ignite.
> [08:51:56] Topology snapshot [ver=3, locNode=3da900bd, servers=1,
> clients=0,
> state=ACTIVE, CPUs=4, offheap=4.6GB, heap=4.0GB]
> [08:51:56] Coordinator changed [prev=TcpDiscoveryNode
> [id=ae5f19f3-2cfe-477b-b16d-4d12fb95aaad, addrs=[10.0.75.1, 127.0.0.1,
> 172.27.252.225, 192.168.1.123, 192.168.32.1],
> sockAddrs=[/172.27.252.225:47500, /10.0.75.1:47500, /127.0.0.1:47500,
> /192.168.32.1:47500, L2SG9M32.europe.temenosgroup.com/192.168.1.123:47500
> ],
> discPort=47500, order=1, intOrder=1, lastExchangeTime=1561704688821,
> loc=false, ver=2.7.5#20190603-sha1:be4f2a15, isClient=false],
> cur=TcpDiscoveryNode [id=3da900bd-79b3-4b49-a0d4-4b6cbe134b54,
> addrs=[10.0.75.1, 10.30.200.76, 127.0.0.1, 172.27.252.225, 192.168.1.123,
> 192.168.32.1],
> sockAddrs=[L2SG9M32.europe.temenosgroup.com/192.168.1.123:47501,
> L2SG9M32.mshome.net/172.27.252.225:47501, /10.30.200.76:47501,
> /127.0.0.1:47501, /192.168.32.1:47501, /10.0.75.1:47501], discPort=47501,
> order=2, intOrder=2, lastExchangeTime=1561704716259, loc=true,
> ver=2.7.5#20190603-sha1:be4f2a15, isClient=false]]
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Reply via email to