Skip to content

Fix distributed db ring collision #354

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

Closed
wants to merge 2 commits into from

Conversation

axos88
Copy link
Contributor

@axos88 axos88 commented Jul 26, 2013

I have added a test to the HashRing#add_node that will test if a node ID's CRC checksum is already present and will throw an exception in such a case.
This enables to prevent quiet CRC collisions and adding databases which have the same ID, but are not identical. I had this error when adding multiple MockRedis objects to the ring which had the same ID.

@axos88
Copy link
Contributor Author

axos88 commented Jul 26, 2013

There might be a better place to put the test for the introduced code, but I have not found the file for the HashRing tests.

@axos88
Copy link
Contributor Author

axos88 commented Aug 13, 2013

Any progress on this?

djanowski pushed a commit that referenced this pull request Nov 16, 2015
djanowski added a commit that referenced this pull request Nov 16, 2015
@djanowski
Copy link
Collaborator

Sorry for the delay. Thank you.

@djanowski djanowski closed this Nov 16, 2015
@djanowski
Copy link
Collaborator

This is available in 3.2.2.

@axos88
Copy link
Contributor Author

axos88 commented Nov 17, 2015

lolk, your are welcome :)

@axos88 axos88 deleted the fix_distributed_db_ring_collision branch November 17, 2015 12:35
oleksandrbyk added a commit to oleksandrbyk/olek-ruby-redis that referenced this pull request Feb 6, 2019
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