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:
jumao
2022-05-13 14:31:09 +08:00
committed by GitHub
parent e48bc35f35
commit b532e90ff4

View File

@@ -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<>());