Skip to content
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

Merged
merged 4 commits into from
Jan 6, 2025
Merged

Test upgrades for HC-Tree #2045

merged 4 commits into from
Jan 6, 2025

Conversation

tylerkaraszewski
Copy link
Contributor

@tylerkaraszewski tylerkaraszewski commented Jan 6, 2025

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

@tylerkaraszewski tylerkaraszewski self-assigned this Jan 6, 2025
@@ -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++) {
Copy link
Contributor Author

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);
Copy link
Contributor Author

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;
}

Copy link
Contributor Author

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);
Copy link
Contributor Author

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.

@tylerkaraszewski tylerkaraszewski merged commit 30e9af3 into main Jan 6, 2025
1 check passed
@tylerkaraszewski tylerkaraszewski deleted the tyler-improve-tests branch January 6, 2025 23:26
@tylerkaraszewski tylerkaraszewski changed the title Test upgrades for HC-Treee Test upgrades for HC-Tree Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants