[
https://issues.apache.org/jira/browse/IOTDB-4418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Song Ziyang reassigned IOTDB-4418:
----------------------------------
Assignee: Song Ziyang
> Remove-datanode meets error when the region setting is Ratis 1 replica.
> -----------------------------------------------------------------------
>
> Key: IOTDB-4418
> URL: https://issues.apache.org/jira/browse/IOTDB-4418
> Project: Apache IoTDB
> Issue Type: Improvement
> Reporter: Gaofei Cao
> Assignee: Song Ziyang
> Priority: Major
> Attachments: confignode1.log, datanode1.log, datanode2.log,
> datanode3.log, image-2022-09-15-16-50-38-390.png,
> image-2022-09-15-16-51-26-677.png
>
>
> Before execute remove-datanode.sh
> !image-2022-09-15-16-50-38-390.png|width=554,height=246!
>
> After execute remove-datanode.sh, 0.0.0.0:6669 is stuck in the Removing
> status, and ratis reported exception like this
> !image-2022-09-15-16-51-26-677.png|width=562,height=253!
>
> ```
> 2022-09-15 16:52:37,943 [0.0.0.0_50011@group-000200000000-LeaderElection95]
> INFO o.a.r.s.i.LeaderElection:90 -
> 0.0.0.0_50011@group-000200000000-LeaderElection95: PRE_VOTE REJECTED received
> 1 response(s) and 0 exception(s):
> 2022-09-15 16:52:37,943 [0.0.0.0_50011@group-000200000000-LeaderElection95]
> INFO o.a.r.s.i.LeaderElection:94 - Response 0:
> 0.0.0.0_50011<-0.0.0.0_50012#0:FAIL-t1
> 2022-09-15 16:52:37,943 [0.0.0.0_50011@group-000200000000-LeaderElection95]
> INFO o.a.r.s.i.LeaderElection:312 -
> 0.0.0.0_50011@group-000200000000-LeaderElection95 PRE_VOTE round 0: result
> REJECTED
> 2022-09-15 16:52:37,943 [0.0.0.0_50011@group-000200000000-LeaderElection95]
> INFO o.a.r.s.i.RaftServerImpl:299 - 0.0.0.0_50011@group-000200000000:
> changes role from CANDIDATE to FOLLOWER at term 1 for REJECTED
> 2022-09-15 16:52:37,946 [0.0.0.0_50011@group-000200000000-LeaderElection95]
> INFO o.a.r.s.impl.RoleInfo:130 - 0.0.0.0_50011: shutdown
> 0.0.0.0_50011@group-000200000000-LeaderElection95
> 2022-09-15 16:52:37,946 [0.0.0.0_50011@group-000200000000-LeaderElection95]
> INFO o.a.r.s.impl.RoleInfo:139 - 0.0.0.0_50011: start
> 0.0.0.0_50011@group-000200000000-FollowerState
> 2022-09-15 16:52:41,193 [0.0.0.0_50011@group-000200000000-FollowerState] INFO
> o.a.r.s.i.FollowerState:143 -
> 0.0.0.0_50011@group-000200000000-FollowerState: change to CANDIDATE,
> lastRpcElapsedTime:3246009917ns, electionTimeout:3240ms
> 2022-09-15 16:52:41,196 [0.0.0.0_50011@group-000200000000-FollowerState] INFO
> o.a.r.s.impl.RoleInfo:110 - 0.0.0.0_50011: shutdown
> 0.0.0.0_50011@group-000200000000-FollowerState
> 2022-09-15 16:52:41,196 [0.0.0.0_50011@group-000200000000-FollowerState] INFO
> o.a.r.s.i.RaftServerImpl:299 - 0.0.0.0_50011@group-000200000000: changes
> role from FOLLOWER to CANDIDATE at term 1 for changeToCandidate
> 2022-09-15 16:52:41,200 [0.0.0.0_50011@group-000200000000-FollowerState] INFO
> o.a.ratis.conf.ConfUtils:46 - raft.server.leaderelection.pre-vote = true
> (default)
> 2022-09-15 16:52:41,200 [0.0.0.0_50011@group-000200000000-FollowerState] INFO
> o.a.r.s.impl.RoleInfo:139 - 0.0.0.0_50011: start
> 0.0.0.0_50011@group-000200000000-LeaderElection96
> 2022-09-15 16:52:41,204 [0.0.0.0_50011@group-000200000000-LeaderElection96]
> INFO o.a.r.s.i.LeaderElection:310 -
> 0.0.0.0_50011@group-000200000000-LeaderElection96 PRE_VOTE round 0: submit
> vote requests at term 1 for -1:
> [0.0.0.0_50011|rpc:0.0.0.0:50011|admin:|client:|dataStream:|priority:0,
> 0.0.0.0_50012|rpc:0.0.0.0:50012|admin:|client:|dataStream:|priority:0],
> old=null
> ```
>
> datanode1.log ==== 0.0.0.0:6667
> datanode2.log ==== 0.0.0.0:6668
> datanode3.log ==== 0.0.0.0:6669
--
This message was sent by Atlassian Jira
(v8.20.10#820010)