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 "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2014/07/15 08:24:04 UTC

[jira] [Resolved] (OAK-1968) Wrong time unit for async index lease time

     [ https://issues.apache.org/jira/browse/OAK-1968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcel Reutegger resolved OAK-1968.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1

Fixed in trunk: http://svn.apache.org/r1610592 and merged into 1.0 branch: http://svn.apache.org/r1610593

> Wrong time unit for async index lease time
> ------------------------------------------
>
>                 Key: OAK-1968
>                 URL: https://issues.apache.org/jira/browse/OAK-1968
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.0.1, 1.0.2
>            Reporter: Marcel Reutegger
>            Assignee: Marcel Reutegger
>             Fix For: 1.1, 1.0.3
>
>         Attachments: OAK-1968.patch
>
>
> The JavaDoc for {{AsyncIndexUpdate.ASYNC_TIMEOUT}} says the time unit for the timeout is minutes. Within the code the timeout value is rather interpreted as milliseconds, which looks wrong. E.g. the new lease value is calculated as {{lease = now + 2 * ASYNC_TIMEOUT}}.
> It is probably best to change the constant to reflect the timeout in milliseconds.
> It looks like this issue was introduced with changes for OAK-1877 and affects the 1.0.1 and 1.0.2 releases.



--
This message was sent by Atlassian JIRA
(v6.2#6252)