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

Sql. Jdbc. Design transparent handling of server node restart

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • sql
    • Docs Required, Release Notes Required

    Description

      We need to develop a possible solution to properly handle a server node restart.
      For example:

          // Init connection to node 'A'.
          Connection connection = DriverManager.getConnection(URL);
      
          // Restart node 'A'
          restartNode();
      
          // Execute some query
          Statement stmt = connection.createStatement();
          stmt.executeQuery("SELECT 1"); // fails with 'Failed to find resource with id: 1'
      

      Currently query execution fails with the root exception "Failed to find resource with id: 1".

      It seems that we can handle server restart situations transparently to the user without throwing any errors if the server does not hold open resources (cursors, transactions).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xtern Pavel Pereslegin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: