Hello everyone,
I have identified the root cause of the issue myself.
In my test environment, we have been experiencing an indexing-related problem 
for about a month, which is the same issue I referred to in another email I 
sent on August 7. The unexpectedly long indexing interval was actually closely 
related to that problem.
Once the underlying issue was resolved, the situation returned to normal. I can 
now correctly observe the background indexing thread running every 5 seconds as 
expected.
Thank you for your support and suggestions.


Cordiali saluti / Best regards,

Raffaele Gambelli
Application Architect
________________________________
From: Raffaele Gambelli via oak-dev <[email protected]>
Sent: Tuesday, August 25, 2026 4:39 PM
To: Alejandro Moratinos via oak-dev <[email protected]>
Cc: Raffaele Gambelli <[email protected]>
Subject: Async indexing period

Hi all

I'm creating repo in this way

Jcr jcr = new Jcr(oak)
                .with(descriptorInitializer)
                .with(new WrSecurityProvider(oakRepoConfiguration))
                .with((QueryIndexProvider) provider)
                .with((Observer) provider)
                .with(editorProvider)
                .withAsyncIndexing(asyncIndexingLane, 
asyncIndexingDelayInSeconds);

where asyncIndexingDelayInSeconds value is 5 (I'm sure because I log it), but 
enabling logs and looking for "Running background index task" I see every ten 
minutes

2026-08-25 16:10:28.491 DEBUG [platform-core-server,,] 
[oak-scheduled-executor-1257] o.a.j.o.plugins.index.AsyncIndexUpdate  : 
[wm-default-main-async] Running background index task (runWhenPermitted 
AsyncIndexUpdate.java 500)
2026-08-25 16:20:33.853 DEBUG [platform-core-server,,] 
[oak-scheduled-executor-1427] o.a.j.o.plugins.index.AsyncIndexUpdate  : 
[wm-default-main-async] Running background index task (runWhenPermitted 
AsyncIndexUpdate.java 500)
2026-08-25 16:30:39.181 DEBUG [platform-core-server,,] 
[oak-scheduled-executor-1551] o.a.j.o.plugins.index.AsyncIndexUpdate  : 
[wm-default-main-async] Running background index task (runWhenPermitted 
AsyncIndexUpdate.java 500)

How should I set the async period correctly in your opinion?

Cordiali saluti / Best regards,

Raffaele Gambelli
Application Architect
E  [email protected]<mailto:[email protected]>
M +39 3371641888
[https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fimages.eu.signature365.com%2Fb2uknhefs98nwdub%2Fimg_USamABop1MkXu35s%2Fv114.jpg&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7Cfbefaf3d280e451a8d0a08df02b6bdd1%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C639232656054320012%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=8Is7iQLBT%2BOFGghilSRQ5hvoNjmiTaEoMGGC%2FMfcMl8%3D&reserved=0<https://images.eu.signature365.com/b2uknhefs98nwdub/img_USamABop1MkXu35s/v114.jpg>]
[CEGEKA]
Via Ettore Cristoni, 84
IT-40033 Bologna (IT), Italy
T +39 02 2544271
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.cegeka.com%2F&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7Cfbefaf3d280e451a8d0a08df02b6bdd1%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C639232656054340197%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=nA%2BCSIyUTo%2FHGP98c5sI7v6iKG2d262qBmA%2FlpKI5Ys%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.cegeka.com%2F&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7Cfbefaf3d280e451a8d0a08df02b6bdd1%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C639232656054353062%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=nuMPEq7OjcZaLqvXFdhGsik3b9zbEbUsAUPU5LBJd%2BY%3D&reserved=0><http://www.cegeka.com/>




  • Async indexing period Raffaele Gambelli via oak-dev
    • Re: Async indexing period Raffaele Gambelli via oak-dev

Reply via email to