Alexander Belyak created IGNITE-21537:
-----------------------------------------

             Summary: Connection refused exception contains 800 lines
                 Key: IGNITE-21537
                 URL: https://issues.apache.org/jira/browse/IGNITE-21537
             Project: Ignite
          Issue Type: Improvement
          Components: clients
    Affects Versions: 3.0
            Reporter: Alexander Belyak
         Attachments: reconnectException.txt

# Start Ignite3 server node, create some table
 # Start Java client and do some query in the loop
 # 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:
{code:java}
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);
            }
        }
    }
} {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to