Directory ApacheDS
  1. Directory ApacheDS
  2. DIRSERVER-1624

Index are not created when added after the server has been started

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.5.7
    • Fix Version/s: 2.0.0-M8
    • Component/s: None
    • Labels:
      None

      Description

      If we start a server, add a user index, it's not really created. The Partition sees the index added into it's indexed attributeTypes list, but the underlying storage is never updated.

      In order to have the index created, the DirectoryService must be stopped and started.

        Issue Links

          Activity

          Hide
          Emmanuel Lecharny added a comment -

          This has been fixed. The method :
          private void buildUserIndex( List<Index<?, Entry, String>> userIndexes ) throws Exception

          does the job (read all the entries from teh master table and feed teh newly created index)

          Show
          Emmanuel Lecharny added a comment - This has been fixed. The method : private void buildUserIndex( List<Index<?, Entry, String>> userIndexes ) throws Exception does the job (read all the entries from teh master table and feed teh newly created index)
          Hide
          Emmanuel Lecharny added a comment -

          It's not an exact duplication of DIRSERVER-1709 : this issue is for index added after some data has been injected into the server, even if the server is down.

          I think it has been fixed a long time ago, but we must double check that the index is re-created at startup, with all the data injected into it (that means we read all the entries, and add the values into the index before opening the server)

          Show
          Emmanuel Lecharny added a comment - It's not an exact duplication of DIRSERVER-1709 : this issue is for index added after some data has been injected into the server, even if the server is down. I think it has been fixed a long time ago, but we must double check that the index is re-created at startup, with all the data injected into it (that means we read all the entries, and add the values into the index before opening the server)
          Hide
          Pierre-Arnaud Marcelot added a comment -

          Version 2.0.0-M3 has been released a couple months ago.

          Assigned the remaining opened JIRA to the next iteration (2.0.0-M4).

          Show
          Pierre-Arnaud Marcelot added a comment - Version 2.0.0-M3 has been released a couple months ago. Assigned the remaining opened JIRA to the next iteration (2.0.0-M4).
          Hide
          Pierre-Arnaud Marcelot added a comment -

          Version 2.0.0-M1 has been released.
          Moving all related non-resolved issues to the next version.

          Show
          Pierre-Arnaud Marcelot added a comment - Version 2.0.0-M1 has been released. Moving all related non-resolved issues to the next version.
          Hide
          Pierre-Arnaud Marcelot added a comment -

          Version 2.0.0-M1 has been released.
          Moving all related non-resolved issues to the next version.

          Show
          Pierre-Arnaud Marcelot added a comment - Version 2.0.0-M1 has been released. Moving all related non-resolved issues to the next version.

            People

            • Assignee:
              Unassigned
              Reporter:
              Emmanuel Lecharny
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development