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

Provide job name for async index update

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.7, 1.8.0
    • core
    • None

    Description

      Starting with Sling Scheduler 2.6.0 runOn=SINGLE jobs are not scheduled exclusively on the leader anymore (SLING-5387). The implementation will try to distribute them evenly on all cluster nodes. The placement of these jobs depends on the name of the job, which is currently not set by Oak for the async index updates. In this case Sling will generate a name using the service id, but this is not guaranteed to be the same across all cluster nodes.

      This means, it may happen that an async index update job is not scheduled at all, because all cluster nodes assume some other cluster node will schedule the job. Oak should therefore provide a name for the async index update jobs it schedules to help Sling identify those jobs.

      Please note, there is a problem with the initial implementation of this feature in Sling, which got fixed in 2.7.0: SLING-7037

      Attachments

        1. OAK-6605.patch
          4 kB
          Marcel Reutegger

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: