-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test upgrades for HC-Tree #2045
Conversation
@@ -195,7 +195,7 @@ ClusterTester<T>::~ClusterTester() | |||
// Shut down everything but the leader first. | |||
list<thread> threads; | |||
|
|||
for (int i = 0; i< _size; i++) { | |||
for (int i = 0; i < _size; i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just style here.
@@ -576,7 +576,7 @@ bool BedrockTester::readDB(const string& query, SQResult& result, bool online) | |||
SData command("Query"); | |||
command["Query"] = fixedQuery; | |||
command["Format"] = "JSON"; | |||
auto commandResult = executeWaitMultipleData({command}); | |||
auto commandResult = executeWaitMultipleData({command}, 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This creates 10 connections by default and we only need one. Normally it works fine, but it's a waste of effort. IF we get into a state where the connections are failing, we fail 10 connections instead of 1 which is noisy.
} | ||
return false; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is added just so that we wan wait for either LEADING or FOLLOWING instead of just one or the other.
@@ -43,7 +43,7 @@ class BedrockTester { | |||
string startServer(bool wait = true); | |||
|
|||
// Stop a server by sending it a signal. | |||
void stopServer(int signal = SIGTERM); | |||
virtual void stopServer(int signal = SIGTERM); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This allows auth to override this to do extra checks.
Details
Fixed Issues
https://github.com/Expensify/Expensify/issues/337537
Tests
Is tests.
Internal Testing Reminder: when changing bedrock, please compile auth against your new changes