This is an automated email from the ASF dual-hosted git repository.

fortino pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 92ac05f6bf OAK-12052 | oak-search-elastic: log entire request on query 
failure (#2680)
92ac05f6bf is described below

commit 92ac05f6bf9968b3d96e318d262237a640c9c852
Author: Fabrizio Fortino <[email protected]>
AuthorDate: Sat Jan 10 07:41:21 2026 +0100

    OAK-12052 | oak-search-elastic: log entire request on query failure (#2680)
---
 .../index/elastic/query/async/ElasticResultRowAsyncIterator.java  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/async/ElasticResultRowAsyncIterator.java
 
b/oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/async/ElasticResultRowAsyncIterator.java
index ac01b54141..a7f8dab27f 100644
--- 
a/oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/async/ElasticResultRowAsyncIterator.java
+++ 
b/oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/async/ElasticResultRowAsyncIterator.java
@@ -427,11 +427,11 @@ public class ElasticResultRowAsyncIterator implements 
ElasticQueryIterator, Elas
             }
 
             if (t instanceof ElasticsearchException) {
-                LOG.error("Elastic could not process the request for jcr query 
[{}] :: Corresponding ES query {} :: ES Response {} : closing scanner, 
notifying listeners",
-                        indexPlan.getFilter(), query, 
((ElasticsearchException) t).error(), t);
+                LOG.error("Elastic could not process the request for jcr query 
[{}] :: Corresponding ES request {} :: ES Response {} : closing scanner, 
notifying listeners",
+                        indexPlan.getFilter(), searchRequest, 
((ElasticsearchException) t).error(), t);
             } else {
-                LOG.error("Error retrieving data for jcr query [{}] :: 
Corresponding ES query {} : closing scanner, notifying listeners",
-                        indexPlan.getFilter(), query, t);
+                LOG.error("Error retrieving data for jcr query [{}] :: 
Corresponding ES request {} : closing scanner, notifying listeners",
+                        indexPlan.getFilter(), searchRequest, t);
             }
             // closing scanner immediately after a failure avoiding them to 
hang (potentially) forever
             close();

Reply via email to