You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by GitBox <gi...@apache.org> on 2021/06/09 08:15:07 UTC

[GitHub] [sling-org-apache-sling-jcr-repoinit] bdelacretaz commented on pull request #18: SLING-10418 implement a retry for the application of the statements

bdelacretaz commented on pull request #18:
URL: https://github.com/apache/sling-org-apache-sling-jcr-repoinit/pull/18#issuecomment-857487885


   >  Moving the retries into these specific operations doesn't make much sense to me, as it would duplicate a lot of code with no benefit.
   
   It is probably possible to design the code so that the various Operations can indicate if they need to be retried or not.
   
   But as you say, the retrying implementation will do nothing in the vast majority of cases, and only slow down the actual failing cases. As repoinit is generally meant to be executed at startup only that's not really a problem.
   
   I'll comment on the general discussions about retries at SLING-10418 as that's where the discussion started. I'm basically ok with adding the retry mechanism to everything as you suggested. Especially as you're only retrying on `InvalidItemStateException` now.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org