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

Issue 6554 - During import of entries without nsUniqueId, a supplier … #6582

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

Conversation

tbordaz
Copy link
Contributor

@tbordaz tbordaz commented Feb 5, 2025

…generates duplicate nsUniqueId (LMDB only)

Bug description:
During an import the entry is prepared (schema, operational
attributes, password encryption,...) before starting the
update of the database and indexes.
A step of the preparation is to assign a value to 'nsuniqueid'
operational attribute. 'nsuniqueid' must be unique.
In LMDB the preparation is done by multiple threads (workers).
In such case the 'nsuniqueid' are generated in parallel and
as it is time based several values can be duplicated.

Fix description:
To prevent that the routine dbmdb_import_generate_uniqueid
should make sure to synchronize the workers.

fixes: #6554

Reviewed by:

…generates duplicate nsUniqueId (LMDB only)

Bug description:
	During an import the entry is prepared (schema, operational
	attributes, password encryption,...) before starting the
	update of the database and indexes.
	A step of the preparation is to assign a value to 'nsuniqueid'
	operational attribute. 'nsuniqueid' must be unique.
	In LMDB the preparation is done by multiple threads (workers).
	In such case the 'nsuniqueid' are generated in parallel and
	as it is time based several values can be duplicated.

Fix description:
	To prevent that the routine dbmdb_import_generate_uniqueid
	should make sure to synchronize the workers.

fixes: 389ds#6554

Reviewed by:
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.

During import of entries without nsUniqueId, a supplier generates duplicate nsUniqueId (LMDB only)
1 participant