DBZ-7693 Fix custom snapshotter test failure

This commit is contained in:
Chris Cranford 2024-03-29 09:32:13 -04:00 committed by Jiri Pechanec
parent dc5b496c28
commit 1a8cbfc915
2 changed files with 4 additions and 4 deletions

View File

@ -98,8 +98,8 @@ record = s2recs.get(0);
config = DATABASE_CUSTOM_SNAPSHOT.defaultConfig()
.with(BinlogConnectorConfig.SNAPSHOT_MODE, BinlogConnectorConfig.SnapshotMode.CUSTOM.getValue())
.with(BinlogConnectorConfig.SNAPSHOT_MODE_CUSTOM_NAME, BinlogConnectorConfig.class.getName())
.with(BinlogConnectorConfig.SNAPSHOT_QUERY_MODE, BinlogConnectorConfig.SnapshotQueryMode.CUSTOM)
.with(BinlogConnectorConfig.SNAPSHOT_MODE_CUSTOM_NAME, getCustomSnapshotClassName())
.with(BinlogConnectorConfig.SNAPSHOT_QUERY_MODE, CommonConnectorConfig.SnapshotQueryMode.CUSTOM)
.with(BinlogConnectorConfig.SNAPSHOT_QUERY_MODE_CUSTOM_NAME, getCustomSnapshotClassName())
.build();

View File

@ -34,8 +34,8 @@ public String name() {
@Override
public void injectBeanRegistry(BeanRegistry beanRegistry) {
Offsets<MariaDbPartition, MariaDbOffsetContext> mySqlOffsetContext = beanRegistry.lookupByName(StandardBeanNames.OFFSETS, Offsets.class);
hasState = mySqlOffsetContext.getTheOnlyOffset() != null;
Offsets<MariaDbPartition, MariaDbOffsetContext> mariaDbOffsetContext = beanRegistry.lookupByName(StandardBeanNames.OFFSETS, Offsets.class);
hasState = mariaDbOffsetContext.getTheOnlyOffset() != null;
}
@Override