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

Disabling lease check via DocumentMK builder does not work

    XMLWordPrintableJSON

    Details

      Description

      While writing a cluster test where multiple DocumentNodeStore instance are created the test case log exception like

      17:20:34.852 TRACE [DocumentNodeStore lease update thread (1)] ClusterNodeInfo.java:761 renewLease - leaseEndTime: 1470829945825, leaseTime: 120000, leaseUpdateInterval: 10000
      17:20:35.006 TRACE [DocumentNodeStore lease update thread (2)] ClusterNodeInfo.java:761 renewLease - leaseEndTime: 1470829945987, leaseTime: 120000, leaseUpdateInterval: 10000
      17:20:35.855 TRACE [DocumentNodeStore lease update thread (1)] ClusterNodeInfo.java:761 renewLease - leaseEndTime: 1470829945825, leaseTime: 120000, leaseUpdateInterval: 10000
      17:20:35.856 ERROR [DocumentNodeStore lease update thread (1)] ClusterNodeInfo.java:779 This oak instance failed to update the lease in time and can therefore no longer access this DocumentNodeStore.
      17:20:35.857 WARN  [DocumentNodeStore lease update thread (1)] DocumentNodeStore.java:2590 Background operation failed: java.lang.AssertionError: This oak instance failed to update the lease in time and can therefore no longer access this DocumentNodeStore.
      java.lang.AssertionError: This oak instance failed to update the lease in time and can therefore no longer access this DocumentNodeStore.
      	at org.apache.jackrabbit.oak.plugins.document.ClusterNodeInfo.renewLease(ClusterNodeInfo.java:780) ~[classes/:na]
      	at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.renewClusterIdLease(DocumentNodeStore.java:1772) ~[classes/:na]
      	at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore$BackgroundLeaseUpdate.execute(DocumentNodeStore.java:2643) ~[classes/:na]
      	at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore$NodeStoreTask.run(DocumentNodeStore.java:2588) ~[classes/:na]
      	at java.lang.Thread.run(Thread.java:745) [na:1.7.0_55]
      

      This happens because instanceId is same (same JVM process used for both cluster node). To enable such test we need to disable the leasecheck but doing that via DocumentMK does not work

        Attachments

        1. OAK-4664.patch
          2 kB
          Stefan Egli

          Activity

            People

            • Assignee:
              stefanegli Stefan Egli
              Reporter:
              chetanm Chetan Mehrotra
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: