Skip to content

Commit

Permalink
DBZ-7305 Disable table cdc for always snapshot test table
Browse files Browse the repository at this point in the history
  • Loading branch information
mfvitale committed Mar 8, 2024
1 parent 645033e commit d5a3e72
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/test/java/io/debezium/connector/db2/Db2ConnectorIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,7 @@ public void shouldNotUseOffsetWhenSnapshotIsAlways() throws Exception {
e.printStackTrace();
}
finally {
TestHelper.disableTableCdc(connection, "ALWAYS_SNAPSHOT");
connection.execute("DROP TABLE ALWAYS_SNAPSHOT");
}
}
Expand Down Expand Up @@ -1085,11 +1086,6 @@ record = s2recs.get(0);
VerifyRecord.isValidRead(s2recs.get(1), pkField, 2);
}

private void purgeDatabaseLogs() throws SQLException {
connection.execute("ALTER DATABASE testDB1 SET RECOVERY SIMPLE");
connection.execute("DBCC SHRINKFILE (testDB1, 1)");
}

private void assertRecord(Struct record, List<SchemaAndValueField> expected) {
expected.forEach(schemaAndValueField -> schemaAndValueField.assertFor(record));
}
Expand Down

0 comments on commit d5a3e72

Please sign in to comment.