[PALF] fix the leader is revoked when the PALF group is been degraded

This commit is contained in:
BinChenn
2023-03-21 16:56:50 +00:00
committed by ob-robot
parent a1c3c9cf20
commit 1ec233bb5d
3 changed files with 31 additions and 12 deletions

View File

@ -609,6 +609,8 @@ TEST_F(TestLogConfigMgr, test_apply_config_meta)
// memberlist will not be applied right now when there is arb member, so use alive_paxos_memberlist_
bool member_equal = (cm.alive_paxos_memberlist_.member_addr_equal(expect_member_list));
EXPECT_TRUE(member_equal);
// apply config meta
cm.config_meta_ = cm.log_ms_meta_;
// remove(C, 5)
cm.reset_status();
LogConfigChangeArgs remove_c_arg(ObMember(addr3, -1), 5, palf::REMOVE_MEMBER);