You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Stefan Egli (JIRA)" <ji...@apache.org> on 2016/03/23 13:42:25 UTC
[jira] [Updated] (OAK-4145) LeaseFailureHandler might be called
multiple times/concurrently on a lease failure
[ https://issues.apache.org/jira/browse/OAK-4145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Egli updated OAK-4145:
-----------------------------
Fix Version/s: (was: 1.4.1)
* removed from 1.4 branch http://svn.apache.org/viewvc?rev=1736315&view=rev
> LeaseFailureHandler might be called multiple times/concurrently on a lease failure
> ----------------------------------------------------------------------------------
>
> Key: OAK-4145
> URL: https://issues.apache.org/jira/browse/OAK-4145
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: documentmk
> Affects Versions: 1.4.0
> Reporter: Stefan Egli
> Assignee: Stefan Egli
> Fix For: 1.6
>
>
> Due to the [retry loop in ClusterNodeInfo.performLeaseCheck|https://github.com/apache/jackrabbit-oak/blob/4b477d30f22bae8c24412dd123b232a1db33ec99/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/ClusterNodeInfo.java#L606] the previous mechanism to prevent multiple threads to call the LeaseFailureHandler is broken and you can now have multiple threads hit that retry-loop and all of them will call the LeaseFailureHandler in separate threads.
> The consequences aren't grave as OSGi can handle concurrent {{bundle.stop()}} calls just fine.
> But nevertheless, should we only call the LeaseFailureHandler only once.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)