-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ACTool-Config-Worker may throw an exception because it executes very expensive queries, preventing startup #669
Comments
@thomasmueller Is the problem happening during image build or during startup of k8s pod? Overall the following should be true:
You can check the the following code to see what is happening here: Line 68 in 43e00e4
|
Hi, Thanks a lot! The problem I see, it is run at AEM startup of k8s (author), against the whole repository (including /content). This is in the Repository Startup thread; it is blocking the startup.
Great! So maybe the case I saw had a non-default configuration! How can this be configured? It then might just be a matter of explaining this; possibly improving the documentation. |
This OSGi configuration is not documented at all, so hopefully no one deviates from the default without knowing exactly what to do here: Line 56 in 039f56a
|
The issue seems to be the evolution of the AEMaaCS build pipeline as outlined in https://adapt.to/2023/schedule/evolution-of-the-aemaacs-build-pipeline.
|
The following two queries are executed at startup (thread name "Apache Sling Repository Startup Thread #1-ACTool-Config-Worker"). Depending on the content, they may try to read more than 100'000 nodes, which throws an exception, and so startup fails.
Specially the first query may read too many entries. Both queries use the index /oak:index/acPrincipalName.
I think this is somewhat related to #219 - however switching to a Lucene index won't resolve the issue.
The text was updated successfully, but these errors were encountered: