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

Introduce limit for oak.removeCollisions()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.46.0
    • run
    • None

    Description

      Currently the utility method in oak.removeCollisions() attempts to remove all collision markers for a given clusterId. With many collisions this can be a rather expensive operation that is difficult to schedule for MongoDB. I've seen cases where removing all collisions during DocumentNodeStore initialization was blocked for a very long time on the update call to MongoDB. On the MongoDB side the operation was retried many times because it conflicted with other concurrent updates on the same document.

      The method should have a third parameter that limits the number of collisions to remove in one call.

      Attachments

        Issue Links

          Activity

            People

              mreutegg Marcel Reutegger
              mreutegg Marcel Reutegger
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: