[
https://issues.apache.org/jira/browse/OAK-4664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15424299#comment-15424299
]
Chetan Mehrotra commented on OAK-4664:
--------------------------------------
+1. looks fine
> Disabling lease check via DocumentMK builder does not work
> ----------------------------------------------------------
>
> Key: OAK-4664
> URL: https://issues.apache.org/jira/browse/OAK-4664
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: documentmk
> Reporter: Chetan Mehrotra
> Assignee: Stefan Egli
> Priority: Minor
> Fix For: 1.6
>
> Attachments: OAK-4664.patch
>
>
> While writing a cluster test where multiple DocumentNodeStore instance are
> created the test case log exception like
> {noformat}
> 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]
> {noformat}
> 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
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)