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

lease: immediate renew after long renew call

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.5.8
    • None
    • documentmk

    Description

      A single temporary network issue can shut down the DocumentStore. We observed the following situation:

      1. org.apache.jackrabbit.oak.plugins.document.ClusterNodeInfo.renewLease was called (this is done regularly and completely normal)
      2. the network had a temporary issue (whatsoever)
      3. the database call terminated after a lot of time (the default db maxWaitTime is 120 seconds).
      4. org.apache.jackrabbit.oak.plugins.document.ClusterNodeInfo.renewLease decides that the current lease is too old (>120 seconds thats the default for the oak.documentMK.leaseDurationSeconds property), sets a leaseCheckFailed variable and throws an Exception
      5. because leaseCheckFailed is set all following tries (if any) will immediately throw an Exception, too.

      I'd recommend to make the ClusterNodeInfo code more robust so that at least one retry will be made.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bö Martin Böttcher
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: