Hi – We are using Oak 1.6.1 with Postgres document store in a cluster mode. We 
are seeing CommitFailedException on AsyncIndexUpdate job.
AsyncIndexJob scheduled to run every 5 seconds and others are defaults.

Anyone have any idea ?

[async] The index update is still failing 
org.apache.jackrabbit.oak.api.CommitFailedException: OakMerge0004: 
OakMerge0004: Following exceptions occurred during the bulk update operations: 
[org.apache.jackrabbit.oak.plugins.document.ConflictException: The node 
1:/:async was changed in revision r1655e3b0524-0-8 (not yet visible), which was 
applied after the base revision 
r15ed0fef9a0-0-1,r1655e3b0067-0-2,r1656083db11-0-3,r16522a51c03-0-4,r16545142afd-0-5,r161af3d9d9f-0-6,r165265689e2-0-7,r1655e3af40b-0-8,r164dd8a88c9-0-9,r165470df543-0-a,r163e94e9282-0-b,r1651123572a-0-c,
 before r16560a700b0-0-3] (retries 5, 300133 ms) at 
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.merge0(DocumentNodeStoreBranch.java:208)
 at 
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.merge(DocumentNodeStoreBranch.java:127)
 at 
org.apache.jackrabbit.oak.plugins.document.DocumentRootBuilder.merge(DocumentRootBuilder.java:167)
 at 
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.merge(DocumentNodeStore.java:1694)
 at 
org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate.mergeWithConcurrencyCheck(AsyncIndexUpdate.java:802)
 at 
org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate.access$300(AsyncIndexUpdate.java:98)
 at 
org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate$AsyncUpdateCallback.initLease(AsyncIndexUpdate.java:300)
 at 
org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate$AsyncUpdateCallback.prepare(AsyncIndexUpdate.java:317)
 at 
org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate.updateIndex(AsyncIndexUpdate.java:679)
 at 
org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate.runWhenPermitted(AsyncIndexUpdate.java:543)
 at 
org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate.run(AsyncIndexUpdate.java:402)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at 
java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
 at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
 at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
at java.lang.Thread.run(Thread.java:748) Caused by: 
org.apache.jackrabbit.oak.plugins.document.ConflictException: Following 
exceptions occurred during the bulk update operations: 
[org.apache.jackrabbit.oak.plugins.document.ConflictException: The node 
1:/:async was changed in revision r1655e3b0524-0-8 (not yet visible), which was 
applied after the base revision 
r15ed0fef9a0-0-1,r1655e3b0067-0-2,r1656083db11-0-3,r16522a51c03-0-4,r16545142afd-0-5,r161af3d9d9f-0-6,r165265689e2-0-7,r1655e3af40b-0-8,r164dd8a88c9-0-9,r165470df543-0-a,r163e94e9282-0-b,r1651123572a-0-c,
 before r16560a700b0-0-3] at 
org.apache.jackrabbit.oak.plugins.document.Commit.checkConflicts(Commit.java:552)
 at 
org.apache.jackrabbit.oak.plugins.document.Commit.applyToDocumentStore(Commit.java:309)
 at 
org.apache.jackrabbit.oak.plugins.document.Commit.applyToDocumentStore(Commit.java:241)
 at 
org.apache.jackrabbit.oak.plugins.document.Commit.applyInternal(Commit.java:210)
 at org.apache.jackrabbit.oak.plugins.document.Commit.apply(Commit.java:199) at 
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.persist(DocumentNodeStoreBranch.java:298)
 at 
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.persist(DocumentNodeStoreBranch.java:268)
 at 
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.access$300(DocumentNodeStoreBranch.java:58)
 at 
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch$InMemory.merge(DocumentNodeStoreBranch.java:513)
 at 
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.merge0(DocumentNodeStoreBranch.java:185)
 ... 17 common frames omitted

Thank you
Nitesh

The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. If the 
reader of this message is not the intended recipient, you are hereby notified 
that your access is unauthorized, and any review, dissemination, distribution 
or copying of this message including any attachments is strictly prohibited. If 
you are not the intended recipient, please contact the sender and delete the 
material from any computer.

Reply via email to