Skip to content

Phenomenon: Using other programs to add 10000 users and then deleting… #221

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PhilboXie
Copy link

… them, there are still users in the cache after deletion, and these users can never be deleted!, His ID was lost in rdnIdx, but the value of parentIdAndRdn. getNbChild() did not decrease.

Problem discovered: In order to balance the tree, there will be multiple left and right rotations, resulting in multiple threads executing methods and confusing assignment, leading to ID loss.

… them, there are still users in the cache after deletion, and these users can never be deleted!, His ID was lost in rdnIdx, but the value of parentIdAndRdn. getNbChild() did not decrease.

Problem discovered: In order to balance the tree, there will be multiple left and right rotations, resulting in multiple threads executing methods and confusing assignment, leading to ID loss.
@elecharny
Copy link
Contributor

You are damn right !!!

This part of the code is absolutely going to be used in a multi-threaded env, and needs some synchronisation.

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