Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-3632

Db2Connector is unable to establish validation connection

    XMLWordPrintable

Details

    Description

      Db2Connector is unable to start due to two issues

       

      • Configuration passed to connection is not a subset of "database." properties
      • SQL Command used to test connection is invalid
      Db2ConnectorConfig connectorConfig = new Db2ConnectorConfig(config);
      try (Db2Connection connection = new Db2Connection(connectorConfig.getConfig())) {
          try {
              connection.connect();
              connection.execute("SELECT version()");
              LOGGER.info("Successfully tested connection for {} with user '{}'", connection.connectionString(), connection.username());
          }
          catch (SQLException e) {
              LOGGER.error("Failed testing connection for {} with user '{}'", connection.connectionString(), connection.username(), e);
              hostnameValue.addErrorMessage("Unable to connect: " + e.getMessage());
          }
      } 

      Attachments

        Issue Links

          Activity

            People

              jcechace@redhat.com Jakub Čecháček
              jcechace@redhat.com Jakub Čecháček
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: