Skip to content

Conversation

@xShinnRyuu
Copy link
Collaborator

@xShinnRyuu xShinnRyuu commented Jan 9, 2026

This PR is an updated version of #5056 from @hank95179. Thank you for your contribution.

Description

This PR addresses the flakiness observed in test_zscan and test_sync_zscan.
The test seeds the database with two sets of data: a char_map (keys: 'a', 'b', 'c'...) and a large num_map (keys: 'value 0', 'value 1'...).
The previous assertion strictly required all items returned by zscan to start with "value". However, since zscan iterates through the set, it occasionally returns items from the char_map. When this happened, the strict assertion caused the test to fail incorrectly.

Solution

Updated the logic of zscan to only match results starting with value

Issue link

This Pull Request is linked to issue (URL): [Python][Flaky Test] TestClusterRoutes > test_zscan & test_sync_zscan #4952

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one issue.
  • Commit message has a detailed description of what changed and why.
  • Tests are added or updated.
  • CHANGELOG.md and documentation files are updated.
  • Destination branch is correct - main or release
  • Create merge commit if merging release branch into main, squash otherwise.

hank95179 and others added 6 commits December 13, 2025 03:58
@xShinnRyuu
Copy link
Collaborator Author

Duplicate of: #5056

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.

[Python][Flaky Test] TestClusterRoutes > test_zscan & test_sync_zscan

3 participants