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 6316 - lmdb reindex is broken if index type is specified #6318

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

progier389
Copy link
Contributor

@progier389 progier389 commented Sep 5, 2024

While reindexing using task or offline reindex, if the attribute name contains the index type (for example :eq,pres)
Then the attribute is not reindexed. Problem occurs when lmdb is used, things are working fine with bdb.
Solution: strip the index type in reindex as it is done in bdb case.
Anyway the reindex design requires that for a given attribute all the configured index types must be rebuild.

Issue: #6316

Reviewed by: @tbordaz, @droideck (Thanks!)

Copy link
Contributor

@tbordaz tbordaz left a comment

Choose a reason for hiding this comment

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

a typo and some questions.
Also is it related to the failure dogtagpki/pki#4839 ?

dirsrvtests/tests/suites/indexes/regression_test.py Outdated Show resolved Hide resolved
dirsrvtests/tests/suites/indexes/regression_test.py Outdated Show resolved Hide resolved
@progier389
Copy link
Contributor Author

progier389 commented Sep 5, 2024

@tbordaz It is the issue with discussed in chat.
Since you mentionned the same search request in both case, I think
that dogtagpki/pki#4839 is the same problem.

Copy link
Member

@droideck droideck left a comment

Choose a reason for hiding this comment

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

A couple of minor polishing moments; otherwise - Looks Good!

@progier389 progier389 linked an issue Sep 6, 2024 that may be closed by this pull request
assert keys2p > 0
assert keys2s > 0

# Reindex 'cn' without types
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: this is "attr" not " 'cn'"

@progier389 progier389 merged commit 0c8fdf7 into 389ds:main Sep 6, 2024
9 checks passed
vashirov pushed a commit that referenced this pull request Sep 16, 2024
While reindexing using task or offline reindex, if the attribute name contains the index type (for example :eq,pres)
Then the attribute is not reindexed. Problem occurs when lmdb is used, things are working fine with bdb.
Solution: strip the index type in reindex as it is done in bdb case.
Anyway the reindex design requires that for a given attribute all the configured index types must be rebuild.

Issue: #6316

Reviewed by: @tbordaz, @droideck (Thanks!)
vashirov pushed a commit that referenced this pull request Sep 16, 2024
While reindexing using task or offline reindex, if the attribute name contains the index type (for example :eq,pres)
Then the attribute is not reindexed. Problem occurs when lmdb is used, things are working fine with bdb.
Solution: strip the index type in reindex as it is done in bdb case.
Anyway the reindex design requires that for a given attribute all the configured index types must be rebuild.

Issue: #6316

Reviewed by: @tbordaz, @droideck (Thanks!)
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.

lmdb reindex is broken if index type is specified
3 participants