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/07 10:46:12 UTC

(tika) branch main updated: [TIKA-4704] clean up to avoid remaining temp directory (#2749)

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

tilman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/main by this push:
     new 3b46de8ed5 [TIKA-4704] clean up to avoid remaining temp directory (#2749)
3b46de8ed5 is described below

commit 3b46de8ed5a6c4c2cfdbc1239da2e104dac8b405
Author: Tilman Hausherr <ti...@snafu.de>
AuthorDate: Tue Apr 7 12:46:06 2026 +0200

    [TIKA-4704] clean up to avoid remaining temp directory (#2749)
---
 .../test/java/org/apache/tika/pipes/grpc/TikaGrpcServerTest.java   | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tika-grpc/src/test/java/org/apache/tika/pipes/grpc/TikaGrpcServerTest.java b/tika-grpc/src/test/java/org/apache/tika/pipes/grpc/TikaGrpcServerTest.java
index 0b89604bfb..ee909098fc 100644
--- a/tika-grpc/src/test/java/org/apache/tika/pipes/grpc/TikaGrpcServerTest.java
+++ b/tika-grpc/src/test/java/org/apache/tika/pipes/grpc/TikaGrpcServerTest.java
@@ -205,10 +205,11 @@ public class TikaGrpcServerTest {
     public void testBiStream(Resources resources) throws Exception {
         String serverName = InProcessServerBuilder.generateName();
 
+        TikaGrpcServerImpl tikaGrpcServerImpl = new TikaGrpcServerImpl(tikaConfig.toAbsolutePath().toString());
         Server server = InProcessServerBuilder
                 .forName(serverName)
                 .directExecutor()
-                .addService(new TikaGrpcServerImpl(tikaConfig.toAbsolutePath().toString()))
+                .addService(tikaGrpcServerImpl)
                 .build()
                 .start();
         resources.register(server, Duration.ofSeconds(10));
@@ -306,6 +307,10 @@ public class TikaGrpcServerTest {
             assertEquals(NUM_TEST_DOCS, successes.size());
             assertEquals(1, errors.size());
             assertTrue(finished.get());
+
+            tikaGrpcServerImpl.shutdown();
+            server.shutdown();
+            tikaGrpcServerImpl.postShutdown();
         } finally {
             FileUtils.deleteDirectory(testDocumentFolder);
         }