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: fix cluster test #2612

Merged
merged 2 commits into from
Feb 19, 2024
Merged

fix: fix cluster test #2612

merged 2 commits into from
Feb 19, 2024

Conversation

dranikpg
Copy link
Contributor

The test didn't check anything because we pushed the config before actually generating the capture. Note that in my original #2496 this is not the case 🤨

@dranikpg dranikpg requested a review from chakaz February 18, 2024 15:59
@@ -1104,12 +1116,12 @@ async def list_counter(key, client: aioredis.RedisCluster):
for counter in counters:
counter.cancel()

# Push new config
await push_config(json.dumps(await generate_config()), [node.admin_client for node in nodes])

# Generate capture, capture ignores counter keys
capture = await seeder.capture()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Acually I think we should call capture before we issue SLOT-MIGRATION-FINALIZE

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can capture before and after, consistency shouldn't break for outside observers. We could even capture 3 times and check it's the same every time

Copy link
Collaborator

@chakaz chakaz left a comment

Choose a reason for hiding this comment

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

LG. unfortunately, I've been working on the same area doing pretty much the same thing :|

@dranikpg
Copy link
Contributor Author

I was doing some screenshots for a testing presentation and wanted to show this test as an example. But then I noticed it was wrong 😂

@dranikpg dranikpg merged commit d035111 into main Feb 19, 2024
10 checks passed
@dranikpg dranikpg deleted the fix-cluster-test branch February 19, 2024 08:03
lsvmello pushed a commit to lsvmello/dragonfly that referenced this pull request Feb 19, 2024
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.

None yet

3 participants