-
Bug
-
Resolution: Not a Bug
-
Major
-
None
-
None
-
None
-
False
-
None
-
False
-
Critical
In 2.7.0.Alpha2, even when `snapshot.locking.mode` is defined as none or minimal, the following code block throws an error
The `snapshotLockImplementations` list has a `NoLockingSupport` object , but the filter by name is done with "none"
```
if (snapshotLock.isEmpty()) { // Fallback on generic implementation
snapshotLock = snapshotLockImplementations.stream()
.filter(byNameFilter)
.findAny();
snapshotLock.ifPresent(lockImpl -> LOGGER.warn("Found a not connector specific implementation {} for lock mode {}",
lockImpl.getClass().getName(),
snapshotLockMode));
}
return snapshotLock.map(snapshotLockImpl -> {
snapshotLockImpl.configure(configuration.asMap());
if (snapshotLockImpl instanceof BeanRegistryAware)
return snapshotLockImpl;
})
.orElseThrow(() -> new DebeziumException(String.format("Unable to find %s snapshot lock mode. Please check your configuration.", snapshotLockMode)));
}
```
- relates to
-
DBZ-8318 Document how to work with ServiceLoader and bundled jars
- Closed