This is an automated email from the ASF dual-hosted git repository. tballison pushed a commit to branch TIKA-4809-stage-1 in repository https://gitbox.apache.org/repos/asf/tika.git
commit d4306a16c2593a974bb4761e406596d925dbc4b2 Author: tallison <[email protected]> AuthorDate: Fri Aug 7 10:43:24 2026 -0400 TIKA-4809: Collapse duplicate OOM/SystemExit tests in TikaServerIntegrationTest --- .../server/core/TikaServerIntegrationTest.java | 40 ---------------------- 1 file changed, 40 deletions(-) diff --git a/tika-server/tika-server-core/src/test/java/org/apache/tika/server/core/TikaServerIntegrationTest.java b/tika-server/tika-server-core/src/test/java/org/apache/tika/server/core/TikaServerIntegrationTest.java index 46bcb14d9a..2b76b222cb 100644 --- a/tika-server/tika-server-core/src/test/java/org/apache/tika/server/core/TikaServerIntegrationTest.java +++ b/tika-server/tika-server-core/src/test/java/org/apache/tika/server/core/TikaServerIntegrationTest.java @@ -144,26 +144,6 @@ public class TikaServerIntegrationTest extends IntegrationTestBase { testBaseline(); } - @Test - public void testOOMWithPipes() throws Exception { - // With pipes-based parsing, OOM in a child process should NOT crash the server - startProcess(new String[]{"-config", getConfig("tika-config-server-pipes-basic.json")}); - - awaitServerStartup(); - - Response response = WebClient - .create(endPoint + RMETA_PATH) - .accept("application/json") - .put(ClassLoader.getSystemResourceAsStream(TEST_OOM)); - - // Server should return 503 (Service Unavailable) for OOM, not crash - assertEquals(503, response.getStatus()); - assertErrorResponseStatus(response, "OOM"); - - // Server should still be running - verify with a successful request - testBaseline(); - } - @Test public void testSystemExit() throws Exception { // With pipes-based parsing, System.exit in a child process should NOT crash the server @@ -184,26 +164,6 @@ public class TikaServerIntegrationTest extends IntegrationTestBase { testBaseline(); } - @Test - public void testSystemExitWithPipes() throws Exception { - // With pipes-based parsing, System.exit in a child process should NOT crash the server - startProcess(new String[]{"-config", getConfig("tika-config-server-pipes-basic.json")}); - - awaitServerStartup(); - - Response response = WebClient - .create(endPoint + RMETA_PATH) - .accept("application/json") - .put(ClassLoader.getSystemResourceAsStream(TEST_SYSTEM_EXIT)); - - // UNSPECIFIED_CRASH is a transient process failure — 503, same category as OOM/TIMEOUT - assertEquals(503, response.getStatus()); - assertErrorResponseStatus(response, "UNSPECIFIED_CRASH"); - - // Server should still be running - verify with a successful request - testBaseline(); - } - @Test @Timeout(60000) public void testTimeout() throws Exception {
