SteveYurongSu commented on code in PR #15112:
URL: https://github.com/apache/iotdb/pull/15112#discussion_r2002342244
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java:
##########
@@ -577,6 +597,16 @@ public void insertTablet(
if (!insertTabletNode.isGeneratedByPipe()) {
workMemTable.markAsNotGeneratedByPipe();
}
+ final String originClusterId =
+ insertTabletNode.getOriginClusterId() == null
+ ? config.getClusterId()
+ : insertTabletNode.getOriginClusterId();
+ if (Objects.isNull(workMemTable.getCurrentOriginClusterId())) {
+ workMemTable.setCurrentOriginClusterId(originClusterId);
+ } else if (!Objects.equals(originClusterId,
workMemTable.getCurrentOriginClusterId())) {
Review Comment:
Make a static final cache map in the receiver and get the id string from the
map
map <id, id> putIfAbsent
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]