w41ter commented on code in PR #28101:
URL: https://github.com/apache/doris/pull/28101#discussion_r1418440472
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java:
##########
@@ -2796,6 +2800,30 @@ private void removeHelperNode(String host, int port) {
helperNodes.removeIf(node -> node.getHost().equals(host) &&
node.getPort() == port);
}
+ private void ensureSafeToDropAliveFollower() throws DdlException {
+ int numFollower = 0;
+ int numAliveFollower = 0;
+ for (Frontend fe : frontends.values()) {
+ if (fe.getRole() == FrontendNodeType.FOLLOWER) {
+ numFollower += 1;
+ if (fe.isAlive()) {
Review Comment:
Yes, this is only responsible for intercepting common cases. Some extreme
cases cannot be guaranteed.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]