Directory ApacheDS
  1. Directory ApacheDS
  2. DIRSERVER-1711

Index initialization is taking way too much time

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M6
    • Fix Version/s: 2.0.0-M7
    • Component/s: None
    • Labels:
      None

      Description

      When we add some new ATs to be indexed, they are created at startup. As the buildUserIndex() method is called for every single index, and as the master table is being browsed during this process, indexing 10 AT will result into the master table to be read 10 times, which is extremely costly....

      We must process all the index in one shot, reading the Master table only once.

        Activity

        Show
        Emmanuel Lecharny added a comment - Fixed with http://svn.apache.org/viewvc?rev=1326604&view=rev
        Hide
        Carlo Accorsi added a comment -

        Hi, After this fix, i created an entirely new server. After Creating indexes and restarting, i imported 80 users. The server has the same issue once i restart.

        jvm 1 | calling WrapperListener.start()
        jvm 1 | Waiting for WrapperListener.start runner thread to complete.
        jvm 1 | WrapperListener.start runner thread started.
        wrapper | Startup failed: Timed out waiting for signal from JVM.
        wrapper | JVM did not exit on request, terminated
        wrapperp | server listening on port 32000.
        wrapper | JVM was only running for 30 seconds leading to a failed restart count of 1.
        wrapper | There were 1 failed launches in a row, each lasting less than 300 seconds. Giving up.
        wrapper | There may be a configuration problem: please check the logs.
        wrapper | <-- Wrapper Stopped

        Show
        Carlo Accorsi added a comment - Hi, After this fix, i created an entirely new server. After Creating indexes and restarting, i imported 80 users. The server has the same issue once i restart. jvm 1 | calling WrapperListener.start() jvm 1 | Waiting for WrapperListener.start runner thread to complete. jvm 1 | WrapperListener.start runner thread started. wrapper | Startup failed: Timed out waiting for signal from JVM. wrapper | JVM did not exit on request, terminated wrapperp | server listening on port 32000. wrapper | JVM was only running for 30 seconds leading to a failed restart count of 1. wrapper | There were 1 failed launches in a row, each lasting less than 300 seconds. Giving up. wrapper | There may be a configuration problem: please check the logs. wrapper | <-- Wrapper Stopped

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development