Pengzna commented on code in PR #12355:
URL: https://github.com/apache/iotdb/pull/12355#discussion_r1619734518


##########
iotdb-protocol/thrift-consensus/src/main/thrift/pipeconsensus.thrift:
##########
@@ -0,0 +1,111 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+include "common.thrift"
+namespace java org.apache.iotdb.consensus.pipe.thrift
+
+struct TCommitId {
+  1:required i64 commitIndex
+  2:required i32 rebootTimes
+}
+
+struct TPipeConsensusTransferReq {
+  1:required i8 version
+  2:required i16 type
+  3:required TCommitId commitId
+  4:required common.TConsensusGroupId consensusGroupId
+  5:required i32 dataNodeId
+  6:required binary body
+  7:optional binary progressIndex
+}
+
+struct TPipeConsensusTransferResp {
+  1:required common.TSStatus status
+  2:optional binary body
+}
+
+struct TPipeConsensusBatchTransferReq {
+  1:required list<TPipeConsensusTransferReq> batchReqs
+}
+
+struct TPipeConsensusBatchTransferResp {
+  1:required list<TPipeConsensusTransferResp> batchResps
+}
+
+struct TSetActiveReq {
+  1: required common.TConsensusGroupId consensusGroupId
+  2: required bool isActive
+}
+
+struct TSetActiveResp {
+  1: required common.TSStatus status
+}
+
+struct TNotifyPeerToCreateConsensusPipeReq {
+  1: required common.TConsensusGroupId consensusGroupId
+  2: required common.TConsensusGroupId targetPeerConsensusGroupId
+  3: required common.TEndPoint targetPeerEndPoint
+  4: required i32 targetPeerNodeId
+}
+
+struct TNotifyPeerToCreateConsensusPipeResp {
+  1: required common.TSStatus status
+}
+
+struct TNotifyPeerToDropConsensusPipeReq {
+  1: required common.TConsensusGroupId consensusGroupId
+  2: required common.TConsensusGroupId targetPeerConsensusGroupId

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: reviews-unsubscr...@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to