Describe the issue:
I’ve configured a transform job to aggregate the number of documents ingested pr agent.hostname, to have some insight into if the servers are working as expected. The job fails at what seems to be random intervals, but without any details in the logs emitted by the data nodes.
Transform job stops with error “Failed to get the modified buckets in source indices”. How can I investigate this issue further to resolve whatever makes the transform job fail? It’s configured for continuous operation and when it stops aggregating the number of documents ingested the external consumer of the data won’t work.
So I’ve been ooo and when I got back now, the transform job have crashed again: “Failed to search data in source indices”. This makes very little sense to me, as the indices targeted by the transform job have tons of data…
On parsing all logfiles I’ve found these lines, but they don’t provide much to go on when looking for a way to resolve what’s causing this. Are there any configuration options that can be changed to get OS to emit more detailed information when running transform jobs?
/opensearch-lvm/logs/sb-logs-2024-02-29-1.log.gz:[2024-02-29T14:48:26,007][ERROR][o.o.i.t.TransformRunner ] [osl-ask] Failed to execute the transform job [count_docs_pr_hostname_minute] because of exception [Failed to search data in source indices]
/opensearch-lvm/logs/sb-logs-2024-02-29-1.log.gz:org.opensearch.indexmanagement.transform.exceptions.TransformSearchServiceException: Failed to search data in source indices
/opensearch-lvm/logs/sb-logs-2024-02-29-1.log.gz: at org.opensearch.indexmanagement.transform.TransformSearchService.executeCompositeSearch(TransformSearchService.kt:218) ~[opensearch-index-management-2.4.0.0.jar:2.4.0.0]
/opensearch-lvm/logs/sb-logs-2024-02-29-1.log.gz: at org.opensearch.indexmanagement.transform.TransformSearchService$executeCompositeSearch$1.invokeSuspend(TransformSearchService.kt) ~[opensearch-index-management-2.4.0.0.jar:2.4.0.0]
/opensearch-lvm/logs/sb-logs-2024-02-29-1.log.gz: at org.opensearch.indexmanagement.transform.TransformRunner.executeJob(TransformRunner.kt:173) [opensearch-index-management-2.4.0.0.jar:2.4.0.0]
/opensearch-lvm/logs/sb-logs-2024-02-29-1.log.gz: at org.opensearch.indexmanagement.transform.TransformRunner.access$executeJob(TransformRunner.kt:41) [opensearch-index-management-2.4.0.0.jar:2.4.0.0]
/opensearch-lvm/logs/sb-logs-2024-02-29-1.log.gz: at org.opensearch.indexmanagement.transform.TransformRunner$executeJob$1.invokeSuspend(TransformRunner.kt) [opensearch-index-management-2.4.0.0.jar:2.4.0.0]
/opensearch-lvm/logs/sb-logs-2024-02-29-1.log.gz:[2024-02-29T14:48:26,014][INFO ][o.o.i.t.TransformRunner ] [osl-ask] Disabling the transform job count_docs_pr_hostname_minute