Skip to main content
Preston-3
Level 4
Nov 11, 2024 6:10 PM UTC

What does the async state "temp-async" indicate in a merged custom index? Help finding documentation on this.

We have a customization of an OOTB index that after our last deployment was merged and the "async" attribute was set to "temp-async". 

 

jcr:primaryType="oak:QueryIndexDefinition" async="temp-async" async-previous="[async,nrt]"

 

I'm having trouble finding documentation on this, so I'm hoping someone here can help. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

9 replies

Saravanan_Dharmaraj
Community Advisor
Community Advisor
Nov 11, 2024 7:17 PM UTC

@preston-3  Please check the below documentation, you can set async="async" if it wants to run as background thread

 

  • The async property which must be set to async. This sends the index update process to a background thread.

https://experienceleague.adobe.com/en/docs/experience-manager-65/content/implementing/deploying/deploying/queries-and-indexing#the-lucene-property-index

 

 

Translate
Preston-3
Preston-3Author
Level 4
Nov 11, 2024 8:27 PM UTC

Right. So what causes it to get set to "temp-async" instead?

Translate
Tethich
Community Advisor
Community Advisor
Nov 11, 2024 9:05 PM UTC

Hi @preston-3 

I believe your answer is here: https://issues.apache.org/jira/browse/OAK-10265

There is a small comment that mentions the temp-async also in the Apache Oak implementation: https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/importer/IndexImporter.java

Also if you need to understand more about indexes, this one is useful as well: https://lists.apache.org/thread/q6kjgdc8fmx3f7tlx4dzvnnf93mmvttp

Translate
kautuk_sahni
Level 9
Nov 26, 2024 10:03 AM UTC

@preston-3 Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Translate
Kautuk Sahni
Preston-3
Preston-3Author
Level 4
Nov 26, 2024 4:44 PM UTC

Not really. I think it's helpful in providing documentation on what the "async" attribute should be set to, but not what the "temp-async" state is or how it got there, which is my question. 

Translate
Preston-3
Preston-3Author
Level 4
Nov 26, 2024 4:46 PM UTC

Tethich provided the most useful answer, but it's the same links I found my way to and it's not official Adobe documentation. It's strange that this isn't documented anywhere. 

Translate