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 "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2014/10/21 11:47:34 UTC

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

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

Alex Parvulescu updated OAK-2223:
---------------------------------
    Fix Version/s:     (was: 1.0.8)

> 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.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)