This is an automated email from the ASF dual-hosted git repository.
janhoy pushed a commit to branch branch_9_10
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9_10 by this push:
new 5f1100570d0 TikaServerExtractionBackend now sets idleTimeout (#3926)
5f1100570d0 is described below
commit 5f1100570d07a61bdb9829ff53baf14c0a02ffd3
Author: Jan Høydahl <[email protected]>
AuthorDate: Sat Dec 6 15:56:17 2025 +0100
TikaServerExtractionBackend now sets idleTimeout (#3926)
(cherry picked from commit 160076dad1a0d5b1866b7ed67115c58dc4905d63)
(cherry picked from commit 89b682f839982fc17d8b94dd3bdb853c9299458c)
---
changelog/unreleased/PR#3926-tika-server-idle-timeout-fix.yml | 9 +++++++++
.../solr/handler/extraction/TikaServerExtractionBackend.java | 2 ++
2 files changed, 11 insertions(+)
diff --git a/changelog/unreleased/PR#3926-tika-server-idle-timeout-fix.yml
b/changelog/unreleased/PR#3926-tika-server-idle-timeout-fix.yml
new file mode 100644
index 00000000000..f114e4d21e3
--- /dev/null
+++ b/changelog/unreleased/PR#3926-tika-server-idle-timeout-fix.yml
@@ -0,0 +1,9 @@
+# See https://github.com/apache/solr/blob/main/dev-docs/changelog.adoc
+title: When using SolrCell with TikaServer, the connection will no longer
timeout after 30s idle, such as during OCR processing
+type: fixed # added, changed, fixed, deprecated, removed, dependency_update,
security, other
+authors:
+ - name: Jan Høydahl
+ url: https://home.apache.org/phonebook.html?uid=janhoy
+links:
+ - name: PR#3926
+ url: https://github.com/apache/solr/pull/3926
diff --git
a/solr/modules/extraction/src/java/org/apache/solr/handler/extraction/TikaServerExtractionBackend.java
b/solr/modules/extraction/src/java/org/apache/solr/handler/extraction/TikaServerExtractionBackend.java
index b5c65aba27c..b53d78931f7 100644
---
a/solr/modules/extraction/src/java/org/apache/solr/handler/extraction/TikaServerExtractionBackend.java
+++
b/solr/modules/extraction/src/java/org/apache/solr/handler/extraction/TikaServerExtractionBackend.java
@@ -177,6 +177,8 @@ public class TikaServerExtractionBackend implements
ExtractionBackend {
? Duration.ofSeconds(request.tikaServerTimeoutSeconds)
: defaultTimeout;
req.timeout(effectiveTimeout.toMillis(), TimeUnit.MILLISECONDS);
+ // Also set idle timeout in case of heavy server side work like OCR
+ req.idleTimeout(effectiveTimeout.toMillis(), TimeUnit.MILLISECONDS);
// Headers
String accept = (request.tikaServerRecursive ? "application/json" :
"text/xml");