in src/main/java/org/apache/sling/jcr/repoinit/impl/RepositoryInitializerFactory.java [185:202]
protected void applyOperations(Session session, List<Operation> ops, String logMessage, String reference)
throws RepositoryException {
RetryableOperation retry = new RetryableOperation.Builder()
.withBackoffBaseMsec(1000)
.withMaxRetries(3)
.build();
RetryableOperation.RetryableOperationResult result =
applyOperationInternal(session, ops, logMessage, reference, retry);
if (!result.isSuccessful()) {
String msg = String.format(
"Applying repoinit operation failed despite retry; set loglevel to DEBUG to see all exceptions. "
+ "Last exception message from \"%s\" was: %s",
result.getReference(), result.getFailureTrace().getMessage());
aRepoInitStatementFailed.set(true);
throw new RepositoryException(msg, result.getFailureTrace());
}
}