DBZ-7693 Fix custom snapshotter test failure
This commit is contained in:
parent
dc5b496c28
commit
1a8cbfc915
@ -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();
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user