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

fix: Makes tests wait only 500ms for consumer group cleanup #8367

Merged
merged 2 commits into from
Nov 17, 2021

Conversation

AlanConfluent
Copy link
Member

Description

Currently, the QueryCleanupService waits 30s on shutdown. For some hard to debug reason, in tests, I constantly get GroupNotEmptyExceptions for query ids of queries that have been deleted in tests. This makes mosts functional tests timeout at 30s.

This PR makes that value a config and sets it to 500ms in functional tests. After all, when a server is shut down in a test, the state is going to be wiped out anyway. This makes many functional tests go from 40s to 10s in my testing which makes it much easier to deal with and will hopefully speed up our test runs.

Testing done

Ran tests.

Reviewer checklist

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

@AlanConfluent AlanConfluent requested a review from a team as a code owner November 16, 2021 04:19
Copy link
Contributor

@agavra agavra left a comment

Choose a reason for hiding this comment

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

LGTM, happy to try it out and see if it causes any flakiness in the tests.

@AlanConfluent AlanConfluent merged commit 1a2f7b2 into confluentinc:master Nov 17, 2021
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