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

Timothee Maret commented on SLING-12690:
----------------------------------------

I think that it makes sense. We could increment the last processed offset 
persisted in the repository when import "times out".

Is there a mean to tell (maybe from investigating the commit stack trace) that 
the commit is indeed hanging and not simply a large commit that takes a long 
time ?

If we can't tell, what would be the default time out value that would capture 
only hanging commits ?

> Skip package if import is stuck for too long
> --------------------------------------------
>
>                 Key: SLING-12690
>                 URL: https://issues.apache.org/jira/browse/SLING-12690
>             Project: Sling
>          Issue Type: Improvement
>          Components: Content Distribution
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>            Priority: Major
>             Fix For: Content Distribution Journal Core 0.5.2
>
>
> When importing a content package we call filevault to import the package into 
> oak.
> This is a synchronous call that blocks until the import is finished.
> We have cases where this import takes much longer than expected and causes 
> unavailability of replication for other authors.
> We should introduce a maximum time after which we consider the import to be 
> failed and mark the package as skipped. 
> So if an import takes longer than this defined time we must:
>  * Send out a status message to skip the package. So other pods also skip the 
> package
>  * Mark the offset of the package as processed



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to