Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-67020

389DirectoryServer Process Stops When Setting up Sorted VLV Index

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • rhel-9.6
    • rhel-9.4
    • 389-ds-base
    • None
    • 389-ds-base-2.6.1-1.el9
    • No
    • Moderate
    • ZStream
    • rhel-idm-ds
    • Bug Fix
    • Hide
      .Directory Server no longer fails when reindexing a VLV index with the sort attribute indexed with an extended matching rule

      Before this update, a race condition was triggered during reindexing a virtual list views (VLV) index that had the sort attribute indexed with an extended matching rule. As a result, memory leaked and Directory Server failed. With this update, Directory Server serializes the VLV index key generation and no longer fails.
      Show
      .Directory Server no longer fails when reindexing a VLV index with the sort attribute indexed with an extended matching rule Before this update, a race condition was triggered during reindexing a virtual list views (VLV) index that had the sort attribute indexed with an extended matching rule. As a result, memory leaked and Directory Server failed. With this update, Directory Server serializes the VLV index key generation and no longer fails.
    • Done
    • None

      It was unclear whether to specify the version of 389ds with the version specified above, so the OS and 389ds packages that occurred below are listed. Please verify.

      I am writing to inquire about the issue mentioned in the subject line. When executing the command specified in "Issue 1," following the steps outlined in "Execution Command 1," the LDAP process (dirsrv@389ds) encounters an error and stops, as described in "Error Message."

      Furthermore, as per "Issue 2," after executing the command specified in "Execution Command 2" following the steps outlined, though the addition of data is successful with the sort order "uid:2.5.13.2," the process encounters a similar error upon restarting.

      Could you please provide insight into the cause of these errors and any possible solutions?

      [OS Information]
      NAME="Red Hat Enterprise Linux"
      VERSION="8.9 (Ootpa)"
      ID="rhel"
      ID_LIKE="fedora"
      VERSION_ID="8.9"
      PLATFORM_ID="platform:el8"
      PRETTY_NAME="Red Hat Enterprise Linux 8.9 (Ootpa)"
      ANSI_COLOR="0;31"
      CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
      HOME_URL="https://www.redhat.com/"
      DOCUMENTATION_URL="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8"
      BUG_REPORT_URL="https://bugzilla.redhat.com/"
      REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
      REDHAT_BUGZILLA_PRODUCT_VERSION=8.9
      REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
      REDHAT_SUPPORT_PRODUCT_VERSION="8.9"

      [DirectoryService]
      389-ds-base-1.4.3.37-2.module+el8.9.0+20974+3405b7e6.x86_64
      389-ds-base-libs-1.4.3.37-2.module+el8.9.0+20974+3405b7e6.x86_64
      389-ds-base-legacy-tools-1.4.3.37-2.module+el8.9.0+20974+3405b7e6.x86_64

      [Issue 1]
      Create search entries
      Add index to entries (--sort with "uid:2.5.13.2" specified)
      LDAP process (dirsrv@389ds) stops due to error upon adding index.

      [Execution Command 1]
      dsconf -D "cn=<rootDN>" -w <password> ldaps://localhost backend vlv-index add-search --name "VLV People" --search-base "ou=People,<baseDN>" --search-filter "<filter>" --search-scope 2 userRoot
      dsconf -D "cn=<rootDN>" -w <password> ldaps://localhost backend vlv-index add-index --index-name "SORT_UID" --sort "uid:2.5.13.2" --parent-name "VLV People" --index-it "<baseDN>"

      [Issue 2]
      Create search entries
      Add index to entries (--sort with "uid" specified)
      Execute ldapsearch command with VLV options to confirm VLV index search in access logs.
      Add index to entries (--sort with "uid:2.5.13.2" specified)
      LDAP process (dirsrv@389ds) does not stop upon adding index.
      LDAP process (dirsrv@389ds) encounters an error upon adding data after restarting the process.

      [Execution Command 2]
      dsconf -D "cn=<rootDN>" -w <password> ldaps://localhost backend vlv-index add-search --name "VLV People" --search-base "ou=People,<baseDN>" --search-filter "<filter>" --search-scope 2 userRoot
      dsconf -D "cn=<rootDN>" -w <password> ldaps://localhost backend vlv-index add-index --index-name "SORT_UID" --sort "uid" --parent-name "VLV People" --index-it "dc=<baseDN>"
      ldapsearch -D "cn=<rootDN>" -w <password> -H ldaps://localhost -b "ou=People,<baseDN>" -x "<filter>" "distinguishedName" -E 'sss=uid:2.5.13.2' -E 'vlv=0/999999/0/0'
      dsconf -D "cn=<rootDN>" -w <password> ldaps://localhost backend vlv-index add-index --index-name "SORT_UID_2" --sort "uid:2.5.13.2" --parent-name "VLV People" --index-it "<baseDN>"

      [Error Message (/var/log/dirsrv/slapd-389ds/access)]
      ERR - mr_wrap_mr_index_sv_fn - No plugin specified

      [Reference Site]
      https://access.redhat.com/documentation/en-us/red_hat_directory_server/12/html/managing_indexes/proc_creating-a-vlv-index-using-the-command-line-to-improve-the-speed-of-vlv-queries_assembly_using-the-virtual-list-view-control-to-request-a-contiguous-subset-of-a-large-search-result

      Kazuki Sasaki
      SECIOSS Co., Ltd.

              idm-ds-dev-bugs IdM DS Dev
              devel_secioss devel@secioss.co.jp (Inactive)
              IdM DS Dev IdM DS Dev
              Sumedh Sidhaye Sumedh Sidhaye
              Evgenia Martyniuk Evgenia Martyniuk
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: