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

Race condition in MountInfoProviderService

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.44.0
    • 1.46.0
    • composite
    • None

    Description

      The MountInfoConfig is bound reluctantly in https://github.com/apache/jackrabbit-oak/blob/c424e1c179092594c365034c7b3f6eceb6cf2b42/oak-store-composite/src/main/java/org/apache/jackrabbit/oak/composite/MountInfoProviderService.java#L129, apart from that the check in https://github.com/apache/jackrabbit-oak/blob/c424e1c179092594c365034c7b3f6eceb6cf2b42/oak-store-composite/src/main/java/org/apache/jackrabbit/oak/composite/MountInfoProviderService.java#L140 is incorrect as it returns true if all found info configs are part of the array expectedMounts but what is intended is rather that it only returns true if all entries in the array are contained at least once in the bound configs.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: