From 44d807ffb804e44b44a32ac62b78fd79dc6df1ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Wed, 3 May 2023 08:08:15 +0200 Subject: [PATCH 1/2] HSEARCH-4849 Upgrade to Elasticsearch client 8.7.1 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 3dccad20029..c9ead9ba3b2 100644 --- a/pom.xml +++ b/pom.xml @@ -209,7 +209,7 @@ - 8.7.0 + 8.7.1 From aac24121cc3adff6944db35393ff9dc6a33db4c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Wed, 3 May 2023 08:10:35 +0200 Subject: [PATCH 2/2] HSEARCH-4849 Test against Elasticsearch 8.7.1 by default --- Jenkinsfile | 2 +- .../dialect/impl/ElasticsearchDialectFactoryTest.java | 4 ++-- .../testsupport/util/ElasticsearchTckBackendFeatures.java | 2 +- pom.xml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 073f38131d7..13d2f301213 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -251,7 +251,7 @@ stage('Configure') { new EsLocalBuildEnvironment(version: '8.4.3', condition: TestCondition.ON_DEMAND), new EsLocalBuildEnvironment(version: '8.5.3', condition: TestCondition.ON_DEMAND), new EsLocalBuildEnvironment(version: '8.6.2', condition: TestCondition.ON_DEMAND), - new EsLocalBuildEnvironment(version: '8.7.0', condition: TestCondition.BEFORE_MERGE, isDefault: true), + new EsLocalBuildEnvironment(version: '8.7.1', condition: TestCondition.BEFORE_MERGE, isDefault: true), // -------------------------------------------- // OpenSearch diff --git a/backend/elasticsearch/src/test/java/org/hibernate/search/backend/elasticsearch/dialect/impl/ElasticsearchDialectFactoryTest.java b/backend/elasticsearch/src/test/java/org/hibernate/search/backend/elasticsearch/dialect/impl/ElasticsearchDialectFactoryTest.java index 3af1851451d..e806d5e288f 100644 --- a/backend/elasticsearch/src/test/java/org/hibernate/search/backend/elasticsearch/dialect/impl/ElasticsearchDialectFactoryTest.java +++ b/backend/elasticsearch/src/test/java/org/hibernate/search/backend/elasticsearch/dialect/impl/ElasticsearchDialectFactoryTest.java @@ -291,7 +291,7 @@ public static List params() { Elasticsearch7ModelDialect.class, Elasticsearch70ProtocolDialect.class ), success( - ElasticsearchDistributionName.ELASTIC, "8", "8.7.0", + ElasticsearchDistributionName.ELASTIC, "8", "8.7.1", Elasticsearch8ModelDialect.class, Elasticsearch81ProtocolDialect.class ), success( @@ -351,7 +351,7 @@ public static List params() { Elasticsearch8ModelDialect.class, Elasticsearch81ProtocolDialect.class ), success( - ElasticsearchDistributionName.ELASTIC, "8.7", "8.7.0", + ElasticsearchDistributionName.ELASTIC, "8.7", "8.7.1", Elasticsearch8ModelDialect.class, Elasticsearch81ProtocolDialect.class ), success( diff --git a/integrationtest/backend/elasticsearch/src/test/java/org/hibernate/search/integrationtest/backend/elasticsearch/testsupport/util/ElasticsearchTckBackendFeatures.java b/integrationtest/backend/elasticsearch/src/test/java/org/hibernate/search/integrationtest/backend/elasticsearch/testsupport/util/ElasticsearchTckBackendFeatures.java index 56456afa91f..ab8ab1b2839 100644 --- a/integrationtest/backend/elasticsearch/src/test/java/org/hibernate/search/integrationtest/backend/elasticsearch/testsupport/util/ElasticsearchTckBackendFeatures.java +++ b/integrationtest/backend/elasticsearch/src/test/java/org/hibernate/search/integrationtest/backend/elasticsearch/testsupport/util/ElasticsearchTckBackendFeatures.java @@ -272,7 +272,7 @@ public boolean supportsExtremeScaledNumericValues() { // https://github.com/elastic/elasticsearch/issues/91246 // Hopefully this will get fixed in a future version. return isActualVersion( - esVersion -> !esVersion.isBetween( "7.17.7", "7.17" ) && !esVersion.isBetween( "8.5.0", "8.7.0" ), + esVersion -> !esVersion.isBetween( "7.17.7", "7.17" ) && !esVersion.isBetween( "8.5.0", "8.7.1" ), osVersion -> true ); } diff --git a/pom.xml b/pom.xml index c9ead9ba3b2..cb04eb62962 100644 --- a/pom.xml +++ b/pom.xml @@ -227,7 +227,7 @@ 7.0 or 8.0 - 8.7.0 + 8.7.1 1.3 or 2.6