diff --git a/src/main/java/io/debezium/connector/db2/Db2Connection.java b/src/main/java/io/debezium/connector/db2/Db2Connection.java index affeb91..f2d473b 100644 --- a/src/main/java/io/debezium/connector/db2/Db2Connection.java +++ b/src/main/java/io/debezium/connector/db2/Db2Connection.java @@ -116,7 +116,6 @@ public class Db2Connection extends JdbcConnection { */ public Db2Connection(JdbcConfiguration config) { super(config, FACTORY, QUOTED_CHARACTER, QUOTED_CHARACTER); - this.logPositionValidator = this::validateLogPosition; lsnToInstantCache = new BoundedConcurrentHashMap<>(100); realDatabaseName = retrieveRealDatabaseName(); } diff --git a/src/main/java/io/debezium/connector/db2/Db2ConnectorTask.java b/src/main/java/io/debezium/connector/db2/Db2ConnectorTask.java index 0c2f165..7b20a23 100644 --- a/src/main/java/io/debezium/connector/db2/Db2ConnectorTask.java +++ b/src/main/java/io/debezium/connector/db2/Db2ConnectorTask.java @@ -100,7 +100,7 @@ public ChangeEventSourceCoordinator start(Config final SnapshotterService snapshotterService = connectorConfig.getServiceRegistry().tryGetService(SnapshotterService.class); - validateAndLoadSchemaHistory(connectorConfig, metadataConnection, previousOffsets, schema, + validateAndLoadSchemaHistory(connectorConfig, metadataConnection::validateLogPosition, previousOffsets, schema, snapshotterService.getSnapshotter()); taskContext = new Db2TaskContext(connectorConfig, schema);