This is an automated email from the ASF dual-hosted git repository.
sekikn pushed a commit to branch branch-3.5
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/branch-3.5 by this push:
new 76e57f432 BIGTOP-4494. Fix compilation error of TestPing.groovy of
test-artifacts (#1374)
76e57f432 is described below
commit 76e57f4326a79e3b1f7f712ca9f348b6cb19b174
Author: Masatake Iwasaki <[email protected]>
AuthorDate: Mon Sep 1 22:33:45 2025 +0900
BIGTOP-4494. Fix compilation error of TestPing.groovy of test-artifacts
(#1374)
(cherry picked from commit 1351582b5e610238e61c1eda3ee1f99853aacf88)
---
bigtop-tests/smoke-tests/build.gradle | 2 +-
.../bigtop/itest/solr/smoke/TestIndexingSolrJ.groovy | 18 +++++++++---------
pom.xml | 2 +-
3 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/bigtop-tests/smoke-tests/build.gradle
b/bigtop-tests/smoke-tests/build.gradle
index 2b7291807..011e5500f 100644
--- a/bigtop-tests/smoke-tests/build.gradle
+++ b/bigtop-tests/smoke-tests/build.gradle
@@ -30,7 +30,7 @@ subprojects {
ext.groovyVersion = '2.5.4'
ext.hadoopVersion = '2.7.4'
ext.hbaseVersion = '1.1.9'
- ext.solrVersion = '4.6.0'
+ ext.solrVersion = '8.11.4'
ext.slf4jVersion = '1.6.6'
// itest needs be greater than or equal to = 1.0.0
ext.itestVersion = '1.0.0' // Might need to be able to read an input for
alternate version?
diff --git
a/bigtop-tests/test-artifacts/solr/src/main/groovy/org/apache/bigtop/itest/solr/smoke/TestIndexingSolrJ.groovy
b/bigtop-tests/test-artifacts/solr/src/main/groovy/org/apache/bigtop/itest/solr/smoke/TestIndexingSolrJ.groovy
index db09e3062..e86cc6f96 100644
---
a/bigtop-tests/test-artifacts/solr/src/main/groovy/org/apache/bigtop/itest/solr/smoke/TestIndexingSolrJ.groovy
+++
b/bigtop-tests/test-artifacts/solr/src/main/groovy/org/apache/bigtop/itest/solr/smoke/TestIndexingSolrJ.groovy
@@ -20,7 +20,7 @@ package org.apache.bigtop.itest.solr.smoke
import org.apache.solr.client.solrj.SolrQuery
import org.apache.solr.client.solrj.SolrRequest
import org.apache.solr.client.solrj.SolrServerException
-import org.apache.solr.client.solrj.impl.HttpSolrServer
+import org.apache.solr.client.solrj.impl.HttpSolrClient
import org.apache.solr.client.solrj.response.QueryResponse
import org.apache.solr.common.SolrDocument
import org.apache.solr.common.SolrDocumentList
@@ -41,18 +41,18 @@ import org.junit.Assert
*/
class TestIndexingSolrJ extends SolrTestBase {
- HttpSolrServer _server
+ HttpSolrClient _client
@Before
public void before2() {
- _server = new HttpSolrServer(_baseURL)
+ _client = new HttpSolrClient.Builder(_baseURL).build()
}
@After
public void after2() {
- if (_server != null) {
- _server.shutdown()
- _server = null
+ if (_client != null) {
+ _client.close()
+ _client = null
}
}
@@ -68,8 +68,8 @@ class TestIndexingSolrJ extends SolrTestBase {
doc.addField("id", "two")
doc.addField("name", "Another document two")
docs.add(doc)
- _server.add(docs)
- _server.commit()
+ _client.add(docs)
+ _client.commit()
doQuery("*:*", "one", "two")
// Now see if we can search them.
@@ -81,7 +81,7 @@ class TestIndexingSolrJ extends SolrTestBase {
SolrQuery query = new SolrQuery()
query.setQuery(queryString)
query.setRows(1000)
- QueryResponse qr = _server.query(query, SolrRequest.METHOD.POST)
+ QueryResponse qr = _client.query(query, SolrRequest.METHOD.POST)
Object o = qr.getHeader().get("status")
Assert.assertEquals(0, qr.getHeader().get("status"))
diff --git a/pom.xml b/pom.xml
index 4a79ac651..9e40613ff 100644
--- a/pom.xml
+++ b/pom.xml
@@ -42,7 +42,7 @@
<hadoop.version>2.7.3</hadoop.version>
<hbase.version>1.1.9</hbase.version>
<zookeeper.version>3.4.6</zookeeper.version>
- <solr.version>4.10.4</solr.version>
+ <solr.version>8.11.4</solr.version>
<spark.version>2.1.0</spark.version>
<kafka.version>0.10.1.1</kafka.version>
<phoenix.version>4.9.0-HBase-1.1</phoenix.version>