XNX02 commented on code in PR #15275:
URL: https://github.com/apache/iotdb/pull/15275#discussion_r2044234560
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/agent/task/builder/PipeDataNodeBuilder.java:
##########
@@ -84,4 +84,23 @@ public Map<Integer, PipeTask> build() throws
IllegalPathException {
}
return consensusGroupIdToPipeTaskMap;
}
+
+ public Map<Integer, PipeTask> buildExternalPipeTasks() {
+ final Map<Integer, PipeTask> consensusGroupIdToPipeTaskMap = new
HashMap<>();
+ final PipeStaticMeta pipeStaticMeta = pipeMeta.getStaticMeta();
+ final PipeRuntimeMeta pipeRuntimeMeta = pipeMeta.getRuntimeMeta();
+
+ for (Map.Entry<Integer, PipeTaskMeta> consensusGroupIdToPipeTaskMeta :
+ pipeRuntimeMeta.getConsensusGroupId2TaskMetaMap().entrySet()) {
+ final int consensusGroupId = consensusGroupIdToPipeTaskMeta.getKey();
Review Comment:
makes sense, fixed it
--
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]