diff --git a/src/server/ha_state_machine.cpp b/src/server/ha_state_machine.cpp index 046c76aeb2..2f9286af34 100644 --- a/src/server/ha_state_machine.cpp +++ b/src/server/ha_state_machine.cpp @@ -201,8 +201,8 @@ void lgraph::HaStateMachine::on_shutdown() { LOG_DEBUG() << "This node is down"; } void lgraph::HaStateMachine::on_error(const ::braft::Error& e) { - LeaveGroup(); - LOG_DEBUG() << "Met raft error " << e; + // LeaveGroup(); + LOG_INFO() << "Met raft error " << e; } void lgraph::HaStateMachine::on_configuration_committed(const ::braft::Configuration& conf) { diff --git a/test/test_ha_witness.cpp b/test/test_ha_witness.cpp index 7a90c9cea4..2e9838eb6a 100644 --- a/test/test_ha_witness.cpp +++ b/test/test_ha_witness.cpp @@ -288,7 +288,7 @@ TEST_F(TestHAWitness, HAWitnessDisableLeader) { fma_common::SleepS(1); continue; } - } while (++times < 20); + } while (++times < 120); ret = client->CallCypherToLeader(result, "MATCH (n) RETURN COUNT(n)"); UT_EXPECT_TRUE(ret); nlohmann::json res = nlohmann::json::parse(result);