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 "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2014/10/21 11:38:35 UTC

[jira] [Commented] (OAK-2223) IndexStatsMBean should not reset start time

    [ https://issues.apache.org/jira/browse/OAK-2223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14178194#comment-14178194 ] 

Chetan Mehrotra commented on OAK-2223:
--------------------------------------

While you are at it can we also make this information persistent such that IndexStatsMBean reflects true state across all cluster nodes regarding current index status

> IndexStatsMBean should not reset start time
> -------------------------------------------
>
>                 Key: OAK-2223
>                 URL: https://issues.apache.org/jira/browse/OAK-2223
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core
>            Reporter: Alex Parvulescu
>            Assignee: Alex Parvulescu
>            Priority: Minor
>             Fix For: 1.0.8, 1.1.2
>
>
> Currently the IndexStatsMBean will reset the start time of an indexing cycle whenever it finishes. This introduces an interesting problem when you need to observe the indexing process. There's no real way of knowing if the cycle that finished after you started observing it started or not before that moment.
> Ex:
>   ---------- (t1) --------- (t2) ----- (t1') ---- (t3) ---------->
> Let's assume an observer starts reading the indexing stats at (t2) and notices only the end time at (t3). Here we have a race condition: if the indexing cycle started at (t1) then the search should work but if the cycle actually started at (t1') the search won't work.
> Long story short, let's not reset the start time.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)