SteveYurongSu commented on code in PR #12217: URL: https://github.com/apache/iotdb/pull/12217#discussion_r1538940784
########## iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/env/ConfigNodeProcedureEnv.java: ########## @@ -726,6 +730,55 @@ public Map<Integer, TPushPipeMetaResp> dropSinglePipeOnDataNodes(String pipeName return clientHandler.getResponseMap(); } + public Map<Integer, TPushPipeMetaResp> pushMultiPipeMetaToDataNodes( + List<ByteBuffer> pipeMetaBinaryList) { + final Map<Integer, TDataNodeLocation> dataNodeLocationMap = + configManager.getNodeManager().getRegisteredDataNodeLocations(); + final TPushMultiPipeMetaReq request = + new TPushMultiPipeMetaReq().setPipeMetas(pipeMetaBinaryList); + + final AsyncClientHandler<TPushMultiPipeMetaReq, TPushPipeMetaResp> clientHandler = + new AsyncClientHandler<>( + DataNodeRequestType.PIPE_PUSH_MULTI_META, request, dataNodeLocationMap); + AsyncDataNodeClientPool.getInstance() + .sendAsyncRequestToDataNodeWithRetryAndTimeoutInMs( + clientHandler, + PipeConfig.getInstance().getPipeMetaSyncerSyncIntervalMinutes() * 60 * 1000 * 2); Review Comment: ```suggestion PipeConfig.getInstance().getPipeMetaSyncerSyncIntervalMinutes() * 60 * 1000 * 2 / 3); ``` -- 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: reviews-unsubscr...@iotdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org