What does the async state "temp-async" indicate in a merged custom index? Help finding documentation on this. | Community
Skip to main content
Level 4
November 11, 2024

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

  • November 11, 2024
  • 2 replies
  • 1281 views

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. 

2 replies

Saravanan_Dharmaraj
Community Advisor
Community Advisor
November 11, 2024

@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

 

 

Preston-3Author
Level 4
November 11, 2024

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

Tethich
Community Advisor
Community Advisor
November 11, 2024

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

kautuk_sahni
Community Manager
Community Manager
November 26, 2024

@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!

Kautuk Sahni
Preston-3Author
Level 4
November 26, 2024

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. 

Preston-3Author
Level 4
November 26, 2024

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.