Skip to content

lmdb reindex is broken if index type is specified #6316

Closed
@progier389

Description

@progier389

Issue Description
Some freeipa tests are now failing because a reindex is not properly done although a reindex task is performed.
The issue is related to the fact that the task contains subtype -
Looks like it was a regression in some of the vlv fixes
Anyway the index type should always be ignored in tasks because reindexing only some specific types has no sense (because reindex recreate the db instance from scratch anyway ...)

A clear and concise description of what the bug is.

Package Version and Platform:

  • Platform: . Fedora]
  • Package: 2.5 and 3.x branches
  • Browser: N/A

Steps to Reproduce
Steps to reproduce the behavior:

  1. Setup an instance using lmdb with default sample entries
  2. Add description attribute in uid=demo_user, entry (or any other entry)
  3. Add description index for equality and presence WITHOUT reindexing
  4. Restart the server
  5. Add description attribute to the suffix entry
  6. Run reindex task with nsIndexAttribute: description:eq,pres
  7. Run dbscan -f /var/lib/dirsrv/slapd-standalone1/db/userroot/description.db -A
  8. See that there is only 1 key starting with = (the one for the suffix entry)

Expected results
Should have equality keys =value for both the suffix and the demo_user entry
A clear and concise description of what you expected to happen.

Additional context
Solution is to ignore the type when handling reindex task

Triaged: https://issues.redhat.com/browse/IDMDS-4641

Metadata

Metadata

Assignees

Labels

lmdbLMDB related

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions