Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-11837

Thin client fails to connect to the cluster if one node is down

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.8
    • Component/s: thin client
    • Labels:
    • Ignite Flags:
      Docs Required

      Description

      According to java doc: 

      in org.apache.ignite.Ignition

      /**
       * Initializes new instance of \{@link IgniteClient}.
       * <p>
       * Server connection will be lazily initialized when first required.
       *
       * @param cfg Thin client configuration.
       * @return Successfully opened thin client connection.
       */
       public static IgniteClient startClient(ClientConfiguration cfg)
       

       

      but that seems wrong as I get exception:

      Exception in thread "main" org.apache.ignite.client.ClientConnectionException: Ignite cluster is unavailable
       at org.apache.ignite.internal.client.thin.TcpClientChannel.<init>(TcpClientChannel.java:114)
       at org.apache.ignite.internal.client.thin.TcpIgniteClient.lambda$new$0(TcpIgniteClient.java:79)
       at org.apache.ignite.internal.client.thin.ReliableChannel.<init>(ReliableChannel.java:84)
       at org.apache.ignite.internal.client.thin.TcpIgniteClient.<init>(TcpIgniteClient.java:86)
       at org.apache.ignite.internal.client.thin.TcpIgniteClient.start(TcpIgniteClient.java:205)
       Caused by: java.net.ConnectException: Connection refused: connect
       at java.net.DualStackPlainSocketImpl.connect0(Native Method)
       at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
       at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
       at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
       at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
       at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
       at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
       at java.net.Socket.connect(Socket.java:589)
       at java.net.Socket.connect(Socket.java:538)
       at java.net.Socket.<init>(Socket.java:434)
       at java.net.Socket.<init>(Socket.java:211)
       at org.apache.ignite.internal.client.thin.TcpClientChannel.createSocket(TcpClientChannel.java:216)
       at org.apache.ignite.internal.client.thin.TcpClientChannel.<init>(TcpClientChannel.java:108)at org.apache.ignite.Ignition.startClient(Ignition.java:586)
      

       

       

        Attachments

          Activity

            People

            • Assignee:
              pkouznet Pavel Kuznetsov
              Reporter:
              nick_di Nikola Arnaudov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m