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

Configure test server classes before starting MAC #4811

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

cshannon
Copy link
Contributor

Update a few ITs that were stopping a normal server instance and starting up a test impl by taking advantage of changes in #4643 to set the server instance type before start up. This simplifies the tests and also prevents weird behavior by having servers start up and be shut down quickly.

I took a look around the tests and I didn't see too many tests that could be updated to use the new method as some required keeping the original servers around but these were the ones I found.

This closes #4644

Note: Another nice side effect of this is that the changes here actually fix the hanging ExternalCompacttion_2_IT test I was having issues with and mentioned in the gRPC prototype in this comment.

The issue for the hanging wasn't related specifically to gRPC but was directly related to starting up and immediately stopping the first compactor procesess and how the new async future and long polling works from the compaction queue. Before the changes here, the test would kill the original compactors and start up new ones of the type ExternalDoNothingCompactor. Because of the long polling change, there is a race condition where the job is assigned to a future when the original compactor requests a job. Then when the compactor dies, the new one that starts up won't get a job assigned as the previous future never times out from the dead compactor even though the job was cleaned up by the dead compaction detector. Making sure the future will timeout is something that still needs to be fixed as well, but the test change here fixes the root cause by only starting up the DoNothingCompactor in the first place.

Update a few ITs that were stopping a normal server instance and
starting up a test impl by taking advantage of changes in apache#4643 to set
the server instance type before start up. This simplifies the tests and
also prevents weird behavior by having servers start up and be shut down
quickly.

This closes apache#4644
Copy link
Contributor

@dlmarion dlmarion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@cshannon cshannon merged commit b3120cd into apache:elasticity Aug 19, 2024
8 checks passed
@cshannon cshannon deleted the accumulo-4644 branch September 21, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants