mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
ESAdapter Support the same instance cross -library query (#4161)
* ESAdapter Support the same instance cross -library query * fix null point ex
This commit is contained in:
@@ -163,14 +163,14 @@ public abstract class ESAdapter implements OuterAdapter {
|
||||
+ "-"
|
||||
+ StringUtils.trimToEmpty(config.getGroupId())
|
||||
+ "_"
|
||||
+ schema
|
||||
+ tableItem.getSchema() == null ? schema : tableItem.getSchema()
|
||||
+ "-"
|
||||
+ tableItem.getTableName(),
|
||||
k -> new ConcurrentHashMap<>());
|
||||
} else {
|
||||
esSyncConfigMap = dbTableEsSyncConfig.computeIfAbsent(StringUtils.trimToEmpty(config.getDestination())
|
||||
+ "_"
|
||||
+ schema
|
||||
+ tableItem.getSchema() == null ? schema : tableItem.getSchema()
|
||||
+ "-"
|
||||
+ tableItem.getTableName(),
|
||||
k -> new ConcurrentHashMap<>());
|
||||
|
||||
Reference in New Issue
Block a user