Skip to content

Commit 4b757b0

Browse files
authored
Merge branch 'main' into model_regsitry_default_endpoints
2 parents f8f98dc + 6f7a206 commit 4b757b0

File tree

9 files changed

+23
-19
lines changed

9 files changed

+23
-19
lines changed

build-conventions/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
plugins {
11-
id "com.gradle.develocity" version "3.18.1"
11+
id "com.gradle.develocity" version "3.19.2"
1212
}
1313

1414
rootProject.name = 'build-conventions'

build-tools-internal/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pluginManagement {
99
}
1010

1111
plugins {
12-
id "com.gradle.develocity" version "3.18.1"
12+
id "com.gradle.develocity" version "3.19.2"
1313
}
1414

1515
dependencyResolutionManagement {

build-tools/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pluginManagement {
1010
includeBuild "../build-conventions"
1111
}
1212
plugins {
13-
id "com.gradle.develocity" version "3.18.1"
13+
id "com.gradle.develocity" version "3.19.2"
1414
}
1515
include 'reaper'
1616

gradle/build.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ checkstyle = "com.puppycrawl.tools:checkstyle:10.3"
1616
commmons-io = "commons-io:commons-io:2.2"
1717
docker-compose = "com.avast.gradle:gradle-docker-compose-plugin:0.17.5"
1818
forbiddenApis = "de.thetaphi:forbiddenapis:3.8"
19-
gradle-enterprise = "com.gradle:develocity-gradle-plugin:3.18.1"
19+
gradle-enterprise = "com.gradle:develocity-gradle-plugin:3.19.2"
2020
hamcrest = "org.hamcrest:hamcrest:2.1"
2121
httpcore5 = "org.apache.httpcomponents.core5:httpcore5:5.3.3"
2222
httpclient5 = "org.apache.httpcomponents.client5:httpclient5:5.4.2"

gradle/verification-metadata.xml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -814,14 +814,9 @@
814814
<sha256 value="48234cd74e35d91a31a683820a35b5b6d11b55527f32a5b162c6757408b95d7a" origin="Generated by Gradle"/>
815815
</artifact>
816816
</component>
817-
<component group="com.gradle" name="develocity-gradle-plugin" version="3.17.4">
818-
<artifact name="develocity-gradle-plugin-3.17.4.jar">
819-
<sha256 value="e2b3f8a191b0b401b75c2c4542d3d1719814a4212e6920fae4f2f940678bfd99" origin="Generated by Gradle"/>
820-
</artifact>
821-
</component>
822-
<component group="com.gradle" name="develocity-gradle-plugin" version="3.18.1">
823-
<artifact name="develocity-gradle-plugin-3.18.1.jar">
824-
<sha256 value="0adf32afef4ae46a131367e393d18a5d9529750dfd1432287797a64b2c36c7ef" origin="Generated by Gradle"/>
817+
<component group="com.gradle" name="develocity-gradle-plugin" version="3.19.2">
818+
<artifact name="develocity-gradle-plugin-3.19.2.jar">
819+
<sha256 value="fc611e8858a901619831ea1d9efd289db7fea28a0ca3d091abdd363365d9512b" origin="Generated by Gradle"/>
825820
</artifact>
826821
</component>
827822
<component group="com.gradleup.shadow" name="shadow-gradle-plugin" version="8.3.5">

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,6 @@ tests:
285285
- class: org.elasticsearch.smoketest.MlWithSecurityIT
286286
method: test {yaml=ml/start_data_frame_analytics/Test start classification analysis when the dependent variable is missing}
287287
issue: https://github.com/elastic/elasticsearch/issues/124168
288-
- class: org.elasticsearch.search.fieldcaps.FieldCapabilitiesIT
289-
method: testRelocation
290-
issue: https://github.com/elastic/elasticsearch/issues/124227
291288
- class: org.elasticsearch.smoketest.MlWithSecurityIT
292289
method: test {yaml=ml/3rd_party_deployment/Test start and stop multiple deployments}
293290
issue: https://github.com/elastic/elasticsearch/issues/124315

plugins/examples/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
plugins {
11-
id "com.gradle.develocity" version "3.18.1"
11+
id "com.gradle.develocity" version "3.19.2"
1212
}
1313

1414
// Include all subdirectories as example projects

server/src/internalClusterTest/java/org/elasticsearch/search/fieldcaps/FieldCapabilitiesIT.java

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
import java.util.concurrent.atomic.AtomicBoolean;
8585
import java.util.function.Consumer;
8686
import java.util.function.Function;
87+
import java.util.function.Predicate;
8788
import java.util.stream.IntStream;
8889

8990
import static java.util.Collections.singletonList;
@@ -557,11 +558,14 @@ public void testNoActiveCopy() throws Exception {
557558
}
558559
}
559560

560-
private void moveOrCloseShardsOnNodes(String nodeName) throws Exception {
561+
private void moveOrCloseShardsOnNodes(String nodeName, Predicate<String> indexName) throws Exception {
561562
final IndicesService indicesService = internalCluster().getInstance(IndicesService.class, nodeName);
562563
final ClusterState clusterState = clusterService().state();
563564
for (IndexService indexService : indicesService) {
564565
for (IndexShard indexShard : indexService) {
566+
if (indexName.test(indexShard.shardId().getIndexName()) == false) {
567+
continue;
568+
}
565569
if (randomBoolean()) {
566570
closeShardNoCheck(indexShard, randomBoolean());
567571
} else if (randomBoolean()) {
@@ -603,13 +607,21 @@ private void moveOrCloseShardsOnNodes(String nodeName) throws Exception {
603607

604608
public void testRelocation() throws Exception {
605609
populateTimeRangeIndices();
610+
assertAcked(
611+
client().admin()
612+
.indices()
613+
.prepareUpdateSettings("log-index-*")
614+
.setSettings(Settings.builder().put("index.routing.rebalance.enable", "none").build())
615+
.get()
616+
);
617+
ensureGreen("log-index-*");
606618
try {
607619
final AtomicBoolean relocated = new AtomicBoolean();
608620
for (String node : internalCluster().getNodeNames()) {
609621
MockTransportService.getInstance(node)
610622
.addRequestHandlingBehavior(TransportFieldCapabilitiesAction.ACTION_NODE_NAME, (handler, request, channel, task) -> {
611623
if (relocated.compareAndSet(false, true)) {
612-
moveOrCloseShardsOnNodes(node);
624+
moveOrCloseShardsOnNodes(node, indexName -> indexName.startsWith("log-index-"));
613625
}
614626
handler.messageReceived(request, channel, task);
615627
});

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pluginManagement {
1414
}
1515

1616
plugins {
17-
id "com.gradle.develocity" version "3.18.1"
17+
id "com.gradle.develocity" version "3.19.2"
1818
id 'elasticsearch.java-toolchain'
1919
}
2020

0 commit comments

Comments
 (0)