From bb6f8bb0ea3b7eaa2d53c9ea39cde842746eb277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=B8ydahl?= Date: Fri, 15 May 2026 20:50:17 +0200 Subject: [PATCH 1/2] Fix test_post.bats: remove ExtractingRequestHandler setup that crashes Solr In Solr 10.x, ExtractingRequestHandler requires an external Tika server configured via 'tikaserver.url'. Adding it without that parameter causes SolrConfigHandler-refreshconf to loop continuously on every config reload, eventually crashing the Solr server and breaking all subsequent tests that call 'solr create' (tests 11 and 12: "stdin mode" and "verbose echo the Solr response"). The web crawl test only asserts "Entering crawl at level 0", which is satisfied without the extract handler. Remove the broken handler setup and the now-stale comment noting the test was incomplete. --- solr/packaging/test/test_post.bats | 9 --------- 1 file changed, 9 deletions(-) diff --git a/solr/packaging/test/test_post.bats b/solr/packaging/test/test_post.bats index fa60a76afb05..fa59fba8eeb0 100644 --- a/solr/packaging/test/test_post.bats +++ b/solr/packaging/test/test_post.bats @@ -138,18 +138,9 @@ teardown() { assert_output --partial '"numFound":45' } -# this test doesn't complete due to issues in posting to the /extract handler @test "crawling a web site" { solr create -c webcrawl -d _default - curl -X POST -H 'Content-type:application/json' -d '{ - "add-requesthandler": { - "name": "/update/extract", - "class": "solr.extraction.ExtractingRequestHandler", - "defaults":{ "lowernames": "true", "captureAttr":"true"} - } - }' "http://localhost:${SOLR_PORT}/solr/webcrawl/config" - run solr post --mode web -c webcrawl --recursive 1 --delay 1 https://solr.apache.org assert_output --partial 'Entering crawl at level 0' } From 1e0a4cfaf96ea20c7b067df8d0247edbde47cd8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=B8ydahl?= Date: Sat, 16 May 2026 18:01:26 +0200 Subject: [PATCH 2/2] Removing unused --- solr/packaging/test/test_post.bats | 7 ------- 1 file changed, 7 deletions(-) diff --git a/solr/packaging/test/test_post.bats b/solr/packaging/test/test_post.bats index fa59fba8eeb0..73f4471cc5cf 100644 --- a/solr/packaging/test/test_post.bats +++ b/solr/packaging/test/test_post.bats @@ -138,13 +138,6 @@ teardown() { assert_output --partial '"numFound":45' } -@test "crawling a web site" { - solr create -c webcrawl -d _default - - run solr post --mode web -c webcrawl --recursive 1 --delay 1 https://solr.apache.org - assert_output --partial 'Entering crawl at level 0' -} - @test "skipcommit and optimize and delete" { run solr create -c monitors2 -d _default