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())
|
+ StringUtils.trimToEmpty(config.getGroupId())
|
||||||
+ "_"
|
+ "_"
|
||||||
+ schema
|
+ tableItem.getSchema() == null ? schema : tableItem.getSchema()
|
||||||
+ "-"
|
+ "-"
|
||||||
+ tableItem.getTableName(),
|
+ tableItem.getTableName(),
|
||||||
k -> new ConcurrentHashMap<>());
|
k -> new ConcurrentHashMap<>());
|
||||||
} else {
|
} else {
|
||||||
esSyncConfigMap = dbTableEsSyncConfig.computeIfAbsent(StringUtils.trimToEmpty(config.getDestination())
|
esSyncConfigMap = dbTableEsSyncConfig.computeIfAbsent(StringUtils.trimToEmpty(config.getDestination())
|
||||||
+ "_"
|
+ "_"
|
||||||
+ schema
|
+ tableItem.getSchema() == null ? schema : tableItem.getSchema()
|
||||||
+ "-"
|
+ "-"
|
||||||
+ tableItem.getTableName(),
|
+ tableItem.getTableName(),
|
||||||
k -> new ConcurrentHashMap<>());
|
k -> new ConcurrentHashMap<>());
|
||||||
|
|||||||
Reference in New Issue
Block a user