Caideyipi commented on code in PR #16163:
URL: https://github.com/apache/iotdb/pull/16163#discussion_r2271980396
##########
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:
Do not get here... A normal sink executor has an increasing ID, thus you
shall only get when you really need 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]