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

Alex Parvulescu commented on OAK-1647:
--------------------------------------

bq. Would it be possible to create checkpoint only after checking if the async 
index update is already running or not?
Yes, we could move the verification before the checkpoint.

bq. This was done with the assumption that checkpoints are not created in large 
numbers
Interesting, with OAK-1456 we will double the checkpoint numbers which will 
make the matters even worse. Should we maybe make the lifetime window smaller? 
It runs every 5 seconds, so reducing the window in half would not hurt I guess.

> AsyncIndexUpdateTask creating too many checkpoint
> -------------------------------------------------
>
>                 Key: OAK-1647
>                 URL: https://issues.apache.org/jira/browse/OAK-1647
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 0.20
>
>
> AsyncIndexUpdateTask currently creates a checkpoint before [1] proceeding to 
> index. If the indexer is already running then also the checkpoint gets 
> created as that check is performed later. 
> Would it be possible to create checkpoint only after checking if the async 
> index update is already running or not? 
> [1] 
> https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/AsyncIndexUpdate.java#L117



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

Reply via email to