Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-4497

ttl-enabling an index requires a restart

    Details

    • Support Ticket IDs:

      Description

      If you reconfigure an index to set ttl-enabled:true, this does not update the EntryContainer's ttlAttributeIndexes variable. The searchAndDeleteExpiredEntries() method is being periodically run, however due to ttlAttributeIndexes containing no values it does no work.

      EntryContainer.open() does correctly cause ttlAttributeIndexes to get updated and reaping then occurs.

      Steps to Reproduce

      1. Install DS
      2. Add coreTokenExpirationDate to schema ldapmodify...
      3. Create coreTokenExpirationDate ordering index (not ttl-enabled) dsconfig...
      4. Rebuild the index rebuild-index
      5. Stop the server
      6. Start the server
      7. Set ttl-enabled:true on the coreTokenExpirationDate index dsconfig...
      8. Add an entry with a nearby coreTokenExpirationDate value ldapmodify...
      9. Wait for the token to expire
      10. Search for the entry

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ylecaillez Yannick Lecaillez
                Reporter:
                cjr Chris Ridd
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: