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

Connection refused exception contains 800 lines

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0
    • None
    • clients

    Description

      1. Start Ignite3 server node, create some table
      2. Start Java client and do some query in the loop
      3. Kill the server node

      Expected behaviour:

      • "Connection reset by peer" exception
      • some reconnect exception(s)

      Actual behaviour:

      • "Connection reset by peer" exception
      • 800 LOC exception with recursion (see the attachment)

      Client code is:

      try (IgniteClient client = IgniteClient.builder().addresses("172.24.1.2:10800").build()) {
          while (true) {
              QAaaSUtils.sleep(1000);
              System.out.println("Has " + client.connections().size() + " connections");
              System.out.println(client.connections());
              try (Session sesssion = client.sql().createSession();
                   ResultSet<SqlRow> rs = sesssion.execute(null, "select * from cachepoc_part_a_0 limit 10")) {
                  System.out.println("Query executed");
                  while (rs.hasNext()) {
                      SqlRow row = rs.next();
                      System.out.println(row);
                  }
              }
          }
      } 

      Attachments

        1. reconnectException.txt
          84 kB
          Alexander Belyak

        Activity

          People

            Unassigned Unassigned
            Berkov Alexander Belyak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: