Bug 1255290
Summary: | db2index creates index entry from deleted records | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Thorsten Scherf <tscherf> |
Component: | 389-ds-base | Assignee: | Noriko Hosoi <nhosoi> |
Status: | CLOSED ERRATA | QA Contact: | Viktor Ashirov <vashirov> |
Severity: | high | Docs Contact: | Petr Bokoc <pbokoc> |
Priority: | high | ||
Version: | 6.6 | CC: | jentrena, jgalipea, nkinder, pbokoc, rmeggins |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 389-ds-base-1.2.11.15-67.el6 | Doc Type: | Bug Fix |
Doc Text: |
Tombstone entries no longer create unnecessary index entries
When an entry is deleted, its indexed attribute values are also removed from each index file. However, if the entry is turned into a tombstone entry, reindexing previously added the removed attribute value back into the index. This bug has been fixed, and index files no longer contain unnecessary key-value pairs generated by tombstone entries.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2016-05-10 19:20:42 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1172231, 1272422 |
Description
Thorsten Scherf
2015-08-20 08:35:30 UTC
Build tested: 389-ds-base-1.2.11.15-74.el6.x86_64 # ldapadd -D "cn=Directory Manager" -w Secret123 dn: uid=user80,ou=People,dc=example,dc=com objectClass: top objectClass: account objectClass: posixAccount objectClass: shadowAccount cn: Non Secure User uid: user80 gidNumber: 80 uidNumber: 80 homeDirectory: /home/insecure loginShell: /bin/bash userPassword: {CLEAR}redhat adding new entry "uid=user80,ou=People,dc=example,dc=com" # dbscan -f /var/lib/dirsrv/slapd-rhel6ds/db/userRoot/gidnumber.db4 |grep "=80" =80 # ldapdelete -D "cn=Directory Manager" -w Secret123 "uid=user80,ou=People,dc=example,dc=com" after some time entry is removed from the index: # dbscan -f /var/lib/dirsrv/slapd-rhel6ds/db/userRoot/gidnumber.db4 |grep "=80" -c 0 # /usr/lib64/dirsrv/slapd-rhel6ds/db2index.pl -n userRoot -D "cn=Directory Manager" -w Secret123 -t gidNumber adding new entry "cn=db2index_2016_3_31_16_28_53, cn=index, cn=tasks, cn=config" # dbscan -f /var/lib/dirsrv/slapd-rhel6ds/db/userRoot/gidnumber.db4 |grep "=80" -c 0 Value from the removed entry didn't reappear, marking as VERIFIED. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-0737.html |