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

Race condition in NodeStoreChecksService

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • composite
    • None

    Description

      The NodeStoreChecksService (https://github.com/apache/jackrabbit-oak/blob/bbc141fd1fb9ff0d9ce742279445df9eb698c3e3/oak-store-composite/src/main/java/org/apache/jackrabbit/oak/composite/checks/NodeStoreChecksService.java#L41) executes all bound MountedNodeStoreChecker s which have been there at the time of activation.
      The references are not greedily referenced and also there is no wait for specific MountedNodeStoreChecker services to be active.
      That leads to the fact that the usage of NodeStoreChecksService in CompositeNodeStoreService.registerCompositeNodeStore(...) is not deterministic as the starting order of OSGi services determine which MountedNodeStoreChecker are active during CompositeNodeStoreService.activate().

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: