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

Connection refused exception contains 800 lines

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            Berkov Alexander Belyak

            Dates

              Created:
              Updated:

              Slack

                Issue deployment