Pengzna commented on code in PR #16163:
URL: https://github.com/apache/iotdb/pull/16163#discussion_r2292524182
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/agent/task/stage/PipeTaskSinkStage.java:
##########
@@ -59,7 +61,11 @@ protected void registerSubtask() {
this.connectorSubtaskId =
PipeSinkSubtaskManager.instance()
.register(
- executor,
+ // IoTV2 uses global singleton executor pool.
+ pipeName.startsWith(PipeStaticMeta.CONSENSUS_PIPE_PREFIX)
+ ? (PipeSinkSubtaskExecutor)
+
IoTV2GlobalComponentContainer.getInstance().getConsensusExecutor()
+ : executor.get(),
Review Comment:
fixed.
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/agent/task/builder/PipeDataNodeTaskBuilder.java:
##########
@@ -118,9 +118,7 @@ public PipeDataNodeTask build() {
pipeStaticMeta.getCreationTime(),
connectorParameters,
regionId,
- pipeType.equals(PipeType.USER)
- ?
PipeSubtaskExecutorManager.getInstance().getConnectorExecutorSupplier()
- :
PipeSubtaskExecutorManager.getInstance().getConsensusExecutorSupplier());
+
PipeSubtaskExecutorManager.getInstance().getConnectorExecutorSupplier());
Review Comment:
fixed
--
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]