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 timing issues in flaky scaledown tests #189

Merged
merged 8 commits into from
Sep 15, 2023

Conversation

bjosv
Copy link
Collaborator

@bjosv bjosv commented Sep 4, 2023

  • Terminate a clusterclient directly instead of first closing its client socket.
    This avoids that hiredis-cluster might succeed to reconnect to the server before the server has shutdown.

  • Close the simulated-redis's listener socket early improves stability.

  • Add check for alternative output from clusterclient in testcase cluster-scale-down-test.sh, dbsize-to-all-nodes-during-scaledown-test.shand dbsize-to-all-nodes-during-scaledown-test-async.sh, which depends on timing.

Terminate a clusterclient directly instead of first closing its client
socket. This avoids that hiredis-cluster might succeed to reconnect to
the server before the server has shutdown.

Close the simulated-redis's listener socket early improves stability.

Add check for alternative output from clusterclient in testcase
cluster-scale-down-test.sh, which depends on timing.
Copy link
Collaborator

@zuiderkwast zuiderkwast left a comment

Choose a reason for hiding this comment

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

Sorry if some comments are already outdated. :-)

tests/scripts/cluster-scale-down-test.sh Outdated Show resolved Hide resolved
tests/scripts/cluster-scale-down-test.sh Outdated Show resolved Hide resolved
@bjosv
Copy link
Collaborator Author

bjosv commented Sep 4, 2023

I'll rerun the checks in an hour, I've seemed to trigger API rate limiter with all my testing.
The fixed testcases seems to work better now though..

@bjosv bjosv merged commit 728956c into Nordix:master Sep 15, 2023
32 checks passed
@bjosv bjosv deleted the fix-flaky-tests branch September 15, 2023 10:40
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