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

Feature dummy scan #8

Open
wants to merge 5 commits into
base: Feature-dummyScan
Choose a base branch
from

Conversation

jhpung
Copy link

@jhpung jhpung commented Nov 28, 2024

Issue link

This Pull Request is linked to issue (URL): [REPLACE ME]

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
  • Commits will be squashed upon merging.

avifenesh and others added 5 commits November 22, 2024 19:04
Added test cases to verify cluster scan behavior with DELSLOTS command:

- test_async_cluster_scan_with_few_delslots: Tests scanning with some slots deleted
- test_async_cluster_scan_with_all_delslots: Tests scanning with all slots deleted

Signed-off-by: jhpung <[email protected]>
@jhpung jhpung changed the base branch from main to Feature-dummyScan November 28, 2024 13:58
@avifenesh avifenesh force-pushed the Feature-dummyScan branch 2 times, most recently from d9cb45b to 03b62aa Compare November 29, 2024 12:18
keys.dedup();
expected_keys.sort();
expected_keys.dedup();
assert_eq!(keys, expected_keys);
Copy link
Owner

Choose a reason for hiding this comment

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

That's may or may not pass, deleting slots means deleting their keys, that's meaning the key you expect may not be there.

)
.await;

assert!(delslots_res.is_ok());
Copy link
Owner

Choose a reason for hiding this comment

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

Should validate that slots are actually missing and there's uncovered slots.

println!("keys: {:?}", keys);
expected_keys.sort();
expected_keys.dedup();
assert_eq!(keys, expected_keys);
Copy link
Owner

Choose a reason for hiding this comment

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

If you delete all the slots in it worked, the cluster should be empty if im not mistaking, so something is not working here.

@avifenesh avifenesh force-pushed the Feature-dummyScan branch 2 times, most recently from ae43c7f to 1ba71e5 Compare November 29, 2024 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants