Skip to content

Commit

Permalink
fix ha (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
lipanpan03 authored Aug 2, 2024
1 parent 7ae12c2 commit aceb40d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/server/ha_state_machine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion test/test_ha_witness.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aceb40d

Please sign in to comment.