region_5_before_restart.txt (3.6 KB) region_5.txt (2.4 KB)
今天早上重启了store 5,然后执行了region store 5,发现region count从之前的6变成3,但是region 84还是停留在store 5上。
重启store 5之前的输出结果:
» operator show admin
null
» operator show leader
[
“replace-offline-replica {mv peer: store [4] to [2117]} (kind:leader,region,replica, region:80(20,5), createAt:2021-04-15 08:31:18.102705515 +0800 CST m=+1112597.527981307, startAt:2021-04-15 08:31:18.102901128 +0800 CST m=+1112597.528176942, currentStep:0, steps:[transfer leader from store 4 to store 1, add learner peer 8378 on store 2117, promote learner peer 8378 on store 2117 to voter, remove peer on store 4])”,
“replace-offline-replica {mv peer: store [4] to [2117]} (kind:leader,region,replica, region:64(16,5), createAt:2021-04-15 08:31:31.617549662 +0800 CST m=+1112611.042825460, startAt:2021-04-15 08:31:31.617830293 +0800 CST m=+1112611.043106100, currentStep:0, steps:[transfer leader from store 4 to store 1, add learner peer 8379 on store 2117, promote learner peer 8379 on store 2117 to voter, remove peer on store 4])”,
“replace-offline-replica {mv peer: store [4] to [2117]} (kind:leader,region,replica, region:68(17,5), createAt:2021-04-15 08:31:40.123580365 +0800 CST m=+1112619.548856157, startAt:2021-04-15 08:31:40.123758136 +0800 CST m=+1112619.549033941, currentStep:0, steps:[transfer leader from store 4 to store 1, add learner peer 8380 on store 2117, promote learner peer 8380 on store 2117 to voter, remove peer on store 4])”
]
» operator show region
[
“replace-offline-replica {mv peer: store [4] to [2117]} (kind:region,replica, region:12(3,5), createAt:2021-04-15 08:29:02.669176388 +0800 CST m=+1112462.094452151, startAt:2021-04-15 08:29:02.669277765 +0800 CST m=+1112462.094553685, currentStep:0, steps:[add learner peer 8377 on store 2117, promote learner peer 8377 on store 2117 to voter, remove peer on store 4])”,
“replace-offline-replica {mv peer: store [4] to [2117]} (kind:leader,region,replica, region:64(16,5), createAt:2021-04-15 08:31:31.617549662 +0800 CST m=+1112611.042825460, startAt:2021-04-15 08:31:31.617830293 +0800 CST m=+1112611.043106100, currentStep:0, steps:[transfer leader from store 4 to store 1, add learner peer 8379 on store 2117, promote learner peer 8379 on store 2117 to voter, remove peer on store 4])”,
“replace-offline-replica {mv peer: store [4] to [2117]} (kind:leader,region,replica, region:68(17,5), createAt:2021-04-15 08:31:40.123580365 +0800 CST m=+1112619.548856157, startAt:2021-04-15 08:31:40.123758136 +0800 CST m=+1112619.549033941, currentStep:0, steps:[transfer leader from store 4 to store 1, add learner peer 8380 on store 2117, promote learner peer 8380 on store 2117 to voter, remove peer on store 4])”,
“replace-offline-replica {mv peer: store [4] to [2117]} (kind:region,replica, region:76(19,5), createAt:2021-04-15 08:28:34.643890686 +0800 CST m=+1112434.069166477, startAt:2021-04-15 08:28:34.644057689 +0800 CST m=+1112434.069333491, currentStep:0, steps:[add learner peer 8376 on store 2117, promote learner peer 8376 on store 2117 to voter, remove peer on store 4])”,
“replace-offline-replica {mv peer: store [4] to [2117]} (kind:region,replica, region:84(21,5), createAt:2021-04-15 08:37:18.650708129 +0800 CST m=+1112958.075983922, startAt:2021-04-15 08:37:18.650849519 +0800 CST m=+1112958.076125322, currentStep:0, steps:[add learner peer 8381 on store 2117, promote learner peer 8381 on store 2117 to voter, remove peer on store 4])”,
“replace-offline-replica {mv peer: store [4] to [2117]} (kind:leader,region,replica, region:80(20,5), createAt:2021-04-15 08:31:18.102705515 +0800 CST m=+1112597.527981307, startAt:2021-04-15 08:31:18.102901128 +0800 CST m=+1112597.528176942, currentStep:0, steps:[transfer leader from store 4 to store 1, add learner peer 8378 on store 2117, promote learner peer 8378 on store 2117 to voter, remove peer on store 4])”
]
重启 store 5自后的结果:
» operator show leader
null
» operator show region
[
“replace-offline-replica {mv peer: store [4] to [2117]} (kind:region,replica, region:12(3,5), createAt:2021-04-15 09:09:10.199676873 +0800 CST m=+1114869.624952666, startAt:2021-04-15 09:09:10.19983761 +0800 CST m=+1114869.625113411, currentStep:0, steps:[add learner peer 8404 on store 2117, promote learner peer 8404 on store 2117 to voter, remove peer on store 4])”,
“replace-offline-replica {mv peer: store [4] to [2117]} (kind:region,replica, region:76(19,5), createAt:2021-04-15 09:08:47.679064779 +0800 CST m=+1114847.104340573, startAt:2021-04-15 09:08:47.679254629 +0800 CST m=+1114847.104530504, currentStep:0, steps:[add learner peer 8403 on store 2117, promote learner peer 8403 on store 2117 to voter, remove peer on store 4])”,
“replace-offline-replica {mv peer: store [4] to [2117]} (kind:region,replica, region:84(21,5), createAt:2021-04-15 09:07:23.196152053 +0800 CST m=+1114762.621427846, startAt:2021-04-15 09:07:23.196312753 +0800 CST m=+1114762.621588572, currentStep:0, steps:[add learner peer 8402 on store 2117, promote learner peer 8402 on store 2117 to voter, remove peer on store 4])”
]