Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-9171

Exception when checking for table presence is not processed correctly

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: 7.10.0-alpha1
    • Fix Version/s: 7.10.0, 7.9.3, 7.8.9, 7.7.10
    • Component/s: engine
    • Labels:

      Description

      What are the steps to reproduce your problem?
      1. Empty H2 database
      2. Something is wrong with database connectivity (not clear how to reproduce)
      3. Start the engine

      What is the problem?
      If in method DbSqlSession.isTablePresent , in "internal" try..catch clause the exception happens, it can then be hidden by another exception coming from finally clause.

      try {
          tables = databaseMetaData.getTables(this.connectionMetadataDefaultCatalog, schema, tableName, JDBC_METADATA_TABLE_TYPES);
          return tables.next();
      } finally {
          tables.close();
      }
      

      What would be the expected behavior:
      The initial exception must be never hidden and must appear in logs

      Hints (optional):
      Null-check is required in finally clause

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            yana.vasileva Yana Vasileva
            Reporter:
            svetlana.dorokhova Svetlana Dorokhova
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development