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

Intermittent test failure on CI

    XMLWordPrintable

Details

    Description

      This one actually occurs in all PR builds atm.:

      2020-04-27 19:34:39,160 ERROR EventProcessingFailureHandlingIT||test Error while initiating test database [io.debezium.connector.sqlserver.util.TestHelper]
      com.microsoft.sqlserver.jdbc.SQLServerException: Cannot drop database "testDB" because it is currently in use.
      at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:262)
      at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1621)
      at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(SQLServerStatement.java:868)
      at com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute(SQLServerStatement.java:768)
      at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7194)
      at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:2935)
      at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:248)
      at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:223)
      at com.microsoft.sqlserver.jdbc.SQLServerStatement.execute(SQLServerStatement.java:744)
      at io.debezium.jdbc.JdbcConnection.lambda$execute$2(JdbcConnection.java:349)
      at io.debezium.jdbc.JdbcConnection.execute(JdbcConnection.java:366)
      at io.debezium.jdbc.JdbcConnection.execute(JdbcConnection.java:343)
      at io.debezium.connector.sqlserver.util.TestHelper.createTestDatabase(TestHelper.java:118)
      at io.debezium.connector.sqlserver.EventProcessingFailureHandlingIT.before(EventProcessingFailureHandlingIT.java:40)

      Would it help to retry the DROP DATABASE using Awaitility? Locally this one runs fine.

      Attachments

        Activity

          People

            ccranfor@redhat.com Chris Cranford
            gmorling@redhat.com Gunnar Morling
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: