You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ti...@apache.org on 2026/04/06 19:55:12 UTC

(tika) 01/01: [TIKA-4704] Implement pipes client shutdown in TikaGrpcServerImpl

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

tilman pushed a commit to branch TIKA-4704-12
in repository https://gitbox.apache.org/repos/asf/tika.git

commit cc3b0eebbb0efe44f5c5923e59fd88173a23f9fc
Author: Tilman Hausherr <ti...@snafu.de>
AuthorDate: Mon Apr 6 21:55:02 2026 +0200

    [TIKA-4704] Implement pipes client shutdown in TikaGrpcServerImpl
    
    Added shutdown logic for pipes client in TikaGrpcServerImpl.
---
 .../main/java/org/apache/tika/pipes/grpc/TikaGrpcServerImpl.java | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tika-grpc/src/main/java/org/apache/tika/pipes/grpc/TikaGrpcServerImpl.java b/tika-grpc/src/main/java/org/apache/tika/pipes/grpc/TikaGrpcServerImpl.java
index c61085560b..0dae8c458d 100644
--- a/tika-grpc/src/main/java/org/apache/tika/pipes/grpc/TikaGrpcServerImpl.java
+++ b/tika-grpc/src/main/java/org/apache/tika/pipes/grpc/TikaGrpcServerImpl.java
@@ -488,5 +488,14 @@ class TikaGrpcServerImpl extends TikaGrpc.TikaImplBase {
                 LOG.error("Error shutting down Ignite server", e);
             }
         }
+        if (pipesClient != null) {
+            LOG.info("Shutting down the pipes client");
+            try {
+                pipesClient.close();
+            }
+            catch (IOException e) {
+                LOG.error("Error closing the pipes client", e);
+            }
+        }
     }
 }