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

Alex Parvulescu resolved OAK-2223.
----------------------------------
       Resolution: Duplicate
    Fix Version/s:     (was: 1.1.2)

fixed via OAK-2230

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

Reply via email to