Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-9573

Make TraverseWithSort strategy the default while indexing

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.42.0
    • indexing
    • None

    Description

      With the multithreaded strategy we have seen some issues in synchronization. Eg with thread size 4 -

      All 4 running tasks got the MemoryManager's signal, which is indicated by the log lines -

      13:54:28.397 [Service Thread] INFO  o.a.j.o.i.i.d.f.TraverseAndSortTask - TAST-NSET19 Setting dumpData to true
      13:54:28.398 [Service Thread] INFO  o.a.j.o.i.i.d.f.TraverseAndSortTask - TAST-NSET2 Setting dumpData to true
      13:54:28.398 [Service Thread] INFO  o.a.j.o.i.i.d.f.TraverseAndSortTask - TAST-NSET10 Setting dumpData to true
      13:54:28.398 [Service Thread] INFO  o.a.j.o.i.i.d.f.TraverseAndSortTask - TAST-NSET1 Setting dumpData to true
      
      

      However only three of them actually proceeded with dumping the data and notifying the MemoryManager, which is indicated by the log lines -

      13:54:33.667 [pool-3-thread-2] INFO  o.a.j.o.i.i.d.f.TraverseAndSortTask - TAST-NSET2 Finished saving data to disk. Notifying memory listener.
      13:54:34.588 [pool-3-thread-4] INFO  o.a.j.o.i.i.d.f.TraverseAndSortTask - TAST-NSET19 Finished saving data to disk. Notifying memory listener.
      13:54:35.438 [pool-3-thread-3] INFO  o.a.j.o.i.i.d.f.TraverseAndSortTask - TAST-NSET10 Finished saving data to disk. Notifying memory listener.

      After this newer tasks weren't able to register and process stuck in some cases.

      So we need to make traverse with sort the default strategy for now.

      Attachments

        Issue Links

          Activity

            People

              amrverma Amrit Verma
              amrverma Amrit Verma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: