Kengo Seki created BIGTOP-4283:
----------------------------------
Summary: Upgrade Solr to 8.11.4
Key: BIGTOP-4283
URL: https://issues.apache.org/jira/browse/BIGTOP-4283
Project: Bigtop
Issue Type: Improvement
Components: solr
Reporter: Kengo Seki
Assignee: Kengo Seki
If we simply upgrade Solr to 8.11.4, its smoke test fails as follows:
{code}
$ git diff
diff --git a/bigtop.bom b/bigtop.bom
index fd297492..f60c294d 100644
--- a/bigtop.bom
+++ b/bigtop.bom
@@ -205,7 +205,7 @@ bigtop {
name = 'solr'
rpm_pkg_suffix = "_" + bigtop.base_version.replace(".", "_")
relNotes = 'Apache Solr'
- version { base = '8.11.2'; pkg = base; release = 2 }
+ version { base = '8.11.4'; pkg = base; release = 1 }
tarball { destination = "$name-${version.base}-src.tgz"
source = destination }
url { download_path = "lucene/$name/${version.base}"
$ ./gradlew solr-clean solr-pkg repo -Dbuildwithdeps=true
...
BUILD SUCCESSFUL in 4m 3s
34 actionable tasks: 34 executed
$ cd provisioner/docker
$ ./docker-hadoop.sh -d -dcp -C config_debian-11.yaml -F
docker-compose-cgroupv2.yml -G -L -k zookeeper,solr -s solr -c 1
...
> Task :bigtop-tests:smoke-tests:solr:test FAILED
>
>
>
>
org.apache.bigtop.itest.solr.smoke.TestIndexing > classMethod FAILED
java.io.IOException: Server returned HTTP response code: 400 for URL:
http://localhost:8983/solr/smoke/update/json?stream.body=[{"id":"doc1","name":"first+test+document"},{"id":"doc2","name":"second+test+document"}]&commit=true&wt=json
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1917)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515)
at
sun.net.www.protocol.http.HttpURLConnection$getInputStream.call(Unknown Source)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:119)
at
org.apache.bigtop.itest.solr.smoke.SolrTestBase.doReq(SolrTestBase.groovy:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:326)
at
groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1491)
at
org.codehaus.groovy.runtime.callsite.StaticMetaClassSite.callStatic(StaticMetaClassSite.java:64)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:55)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:196)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:208)
at
org.apache.bigtop.itest.solr.smoke.TestIndexing.before(TestIndexing.groovy:30)
org.apache.bigtop.itest.solr.smoke.TestIndexing > classMethod FAILED
java.io.IOException: Server returned HTTP response code: 400 for URL:
http://localhost:8983/solr/smoke/update?stream.body=<delete><query>*:*</query></delete>&wt=json
org.apache.bigtop.itest.solr.smoke.TestSimple > classMethod FAILED
java.io.IOException: Server returned HTTP response code: 400 for URL:
http://localhost:8983/solr/smoke/update?stream.body=<delete><query>*:*</query></delete>&wt=json
org.apache.bigtop.itest.solr.smoke.TestSimple > classMethod FAILED
java.io.IOException: Server returned HTTP response code: 400 for URL:
http://localhost:8983/solr/smoke/update?stream.body=<delete><query>*:*</query></delete>&wt=json
org.apache.bigtop.itest.solr.smoke.TestStatistics > classMethod FAILED
java.io.IOException: Server returned HTTP response code: 400 for URL:
http://localhost:8983/solr/smoke/update?stream.body=<delete><query>*:*</query></delete>&wt=json
org.apache.bigtop.itest.solr.smoke.TestStatistics > classMethod FAILED
java.io.IOException: Server returned HTTP response code: 400 for URL:
http://localhost:8983/solr/smoke/update?stream.body=<delete><query>*:*</query></delete>&wt=json
org.apache.bigtop.itest.solr.smoke.TestPing > classMethod FAILED
java.io.IOException: Server returned HTTP response code: 400 for URL:
http://localhost:8983/solr/smoke/update?stream.body=<delete><query>*:*</query></delete>&wt=json
org.apache.bigtop.itest.solr.smoke.TestPing > classMethod FAILED
java.io.IOException: Server returned HTTP response code: 400 for URL:
http://localhost:8983/solr/smoke/update?stream.body=<delete><query>*:*</query></delete>&wt=json
org.apache.bigtop.itest.solr.smoke.TestIndexingSolrJ > classMethod FAILED
java.io.IOException: Server returned HTTP response code: 400 for URL:
http://localhost:8983/solr/smoke/update?stream.body=<delete><query>*:*</query></delete>&wt=json
org.apache.bigtop.itest.solr.smoke.TestIndexingSolrJ > classMethod FAILED
java.io.IOException: Server returned HTTP response code: 400 for URL:
http://localhost:8983/solr/smoke/update?stream.body=<delete><query>*:*</query></delete>&wt=json
10 tests completed, 10 failed
...
BUILD FAILED in 22s
27 actionable tasks: 7 executed, 20 up-to-date
Stopped 1 worker daemon(s).
+ rm -rf buildSrc/build/test-results/binary
+ rm -rf /bigtop-home/.gradle
$ ./docker-hadoop.sh -dcp -e 1 curl
'http://localhost:8983/solr/smoke/update?stream.body=%3Cdelete%3E%3Cquery%3E%2A%3A%2A%3C%2Fquery%3E%3C%2Fdelete%3E&wt=json'
{
"error":{
"metadata":[
"error-class","org.apache.solr.common.SolrException",
"root-error-class","org.apache.solr.common.SolrException"],
"msg":"Stream Body is disabled. See
http://lucene.apache.org/solr/guide/requestdispatcher-in-solrconfig.html for
help",
"code":400}}
{code}
This is because SOLR-14853 is applied to Solr 8.11.3+ not only to 9.x for
security reason. A workaround is introduced
[here|https://lists.apache.org/thread/xr98owlpr1zcg3zr4nx6q5lv1gwvvoyz], but it
doesn't seem to work with our smoke test somehow. So I'll rewrite the usages of
remote streaming in the existing smoke tests with other method.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
