-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[region migration] Make peer list correct when IoTConsensus & IoTConsensusV2 & Ratis starting #14505
[region migration] Make peer list correct when IoTConsensus & IoTConsensusV2 & Ratis starting #14505
Conversation
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/iot/IoTConsensus.java
Show resolved
Hide resolved
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/IConsensus.java
Outdated
Show resolved
Hide resolved
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/iot/IoTConsensus.java
Show resolved
Hide resolved
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/iot/IoTConsensus.java
Outdated
Show resolved
Hide resolved
...tanode/src/main/java/org/apache/iotdb/db/pipe/consensus/ConsensusPipeDataNodeDispatcher.java
Show resolved
Hide resolved
...tanode/src/main/java/org/apache/iotdb/db/pipe/consensus/ConsensusPipeDataNodeDispatcher.java
Show resolved
Hide resolved
consensusPipeManager, | ||
syncClientManager); | ||
stateMachineMap.put(consensusGroupId, consensus); | ||
consensus.start(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we start them after resetpeerlist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure. @Pengzna cc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we must start them in compelableFuture to avoid start failure. may put resetPeerListWithoutThrow.accept
into the completableFuture.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we can put all logic in compelableFuture but start them in the last?
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/pipe/PipeConsensus.java
Outdated
Show resolved
Hide resolved
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/simple/SimpleConsensus.java
Outdated
Show resolved
Hide resolved
...mmons/src/main/java/org/apache/iotdb/commons/pipe/config/constant/PipeConnectorConstant.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/iot/IoTConsensus.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.