Skip to content

Commit bb6752f

Browse files
Merge branch 'main' into declare-int-update-v10
2 parents eb59737 + 3025f6c commit bb6752f

File tree

31 files changed

+2929
-3260
lines changed

31 files changed

+2929
-3260
lines changed

docs/changelog/130733.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 130733
2+
summary: Specify master timeout when submitting alias tasks
3+
area: Indices APIs
4+
type: bug
5+
issues:
6+
- 120389

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,6 @@ tests:
209209
- class: org.elasticsearch.smoketest.MlWithSecurityIT
210210
method: test {yaml=ml/3rd_party_deployment/Test start and stop multiple deployments}
211211
issue: https://github.com/elastic/elasticsearch/issues/124315
212-
- class: org.elasticsearch.multiproject.test.CoreWithMultipleProjectsClientYamlTestSuiteIT
213-
method: test {yaml=data_stream/190_failure_store_redirection/Redirect ingest failure in data stream to failure store}
214-
issue: https://github.com/elastic/elasticsearch/issues/124518
215212
- class: org.elasticsearch.xpack.restart.MLModelDeploymentFullClusterRestartIT
216213
method: testDeploymentSurvivesRestart {cluster=OLD}
217214
issue: https://github.com/elastic/elasticsearch/issues/124160

server/src/main/java/org/elasticsearch/cluster/metadata/MetadataIndexAliasesService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void indicesAliases(
9292
final IndicesAliasesClusterStateUpdateRequest request,
9393
final ActionListener<IndicesAliasesResponse> listener
9494
) {
95-
taskQueue.submitTask("index-aliases", new ApplyAliasesTask(request, listener), null); // TODO use request.masterNodeTimeout() here?
95+
taskQueue.submitTask("index-aliases", new ApplyAliasesTask(request, listener), request.masterNodeTimeout());
9696
}
9797

9898
/**

server/src/test/java/org/elasticsearch/cli/TerminalTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
package org.elasticsearch.cli;
1111

1212
import org.elasticsearch.test.ESTestCase;
13+
import org.elasticsearch.test.ESTestCase.WithoutEntitlements;
1314

1415
import java.io.StringReader;
1516

1617
import static org.elasticsearch.cli.Terminal.readLineToCharArray;
1718
import static org.hamcrest.Matchers.equalTo;
1819

20+
@WithoutEntitlements // test & cli only - never running with entitlements enabled
1921
public class TerminalTests extends ESTestCase {
2022

2123
public void testVerbosity() throws Exception {

server/src/test/java/org/elasticsearch/cluster/coordination/ElasticsearchNodeCommandTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.elasticsearch.index.Index;
2929
import org.elasticsearch.indices.IndicesModule;
3030
import org.elasticsearch.test.ESTestCase;
31+
import org.elasticsearch.test.ESTestCase.WithoutEntitlements;
3132
import org.elasticsearch.test.TestClusterCustomMetadata;
3233
import org.elasticsearch.test.TestProjectCustomMetadata;
3334
import org.elasticsearch.xcontent.NamedXContentRegistry;
@@ -46,6 +47,7 @@
4647
import static org.hamcrest.Matchers.instanceOf;
4748
import static org.hamcrest.Matchers.not;
4849

50+
@WithoutEntitlements // commands don't run with entitlements enforced
4951
public class ElasticsearchNodeCommandTests extends ESTestCase {
5052

5153
public void testLoadStateWithoutMissingCustomsButPreserved() throws IOException {

server/src/test/java/org/elasticsearch/env/NodeRepurposeCommandTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import org.elasticsearch.index.Index;
2828
import org.elasticsearch.index.IndexVersion;
2929
import org.elasticsearch.test.ESTestCase;
30+
import org.elasticsearch.test.ESTestCase.WithoutEntitlements;
3031
import org.hamcrest.Matcher;
3132
import org.junit.Before;
3233

@@ -48,6 +49,7 @@
4849
import static org.hamcrest.Matchers.containsString;
4950
import static org.hamcrest.Matchers.not;
5051

52+
@WithoutEntitlements // commands don't run with entitlements enforced
5153
public class NodeRepurposeCommandTests extends ESTestCase {
5254

5355
private static final Index INDEX = new Index("testIndex", "testUUID");

server/src/test/java/org/elasticsearch/env/OverrideNodeVersionCommandTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import org.elasticsearch.common.settings.Settings;
2222
import org.elasticsearch.gateway.PersistedClusterStateService;
2323
import org.elasticsearch.test.ESTestCase;
24+
import org.elasticsearch.test.ESTestCase.WithoutEntitlements;
2425
import org.junit.After;
2526
import org.junit.Before;
2627

@@ -31,6 +32,7 @@
3132
import static org.hamcrest.Matchers.containsString;
3233
import static org.hamcrest.Matchers.equalTo;
3334

35+
@WithoutEntitlements // commands don't run with entitlements enforced
3436
public class OverrideNodeVersionCommandTests extends ESTestCase {
3537

3638
private Environment environment;

server/src/test/java/org/elasticsearch/index/shard/RemoveCorruptedShardDataCommandTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
import org.elasticsearch.test.CorruptionUtils;
5555
import org.elasticsearch.test.DummyShardLock;
5656
import org.elasticsearch.test.ESTestCase;
57+
import org.elasticsearch.test.ESTestCase.WithoutEntitlements;
5758
import org.junit.Before;
5859

5960
import java.io.IOException;
@@ -77,6 +78,7 @@
7778
import static org.hamcrest.Matchers.is;
7879
import static org.hamcrest.Matchers.startsWith;
7980

81+
@WithoutEntitlements // commands don't run with entitlements enforced
8082
public class RemoveCorruptedShardDataCommandTests extends IndexShardTestCase {
8183

8284
private ShardId shardId;

x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/generative/GenerativeForkRestTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ protected void shouldSkipTest(String testName) throws IOException {
4646
super.shouldSkipTest(testName);
4747

4848
assumeFalse(
49-
"Tests using FORK or RRF already are skipped since we don't support multiple FORKs",
50-
testCase.requiredCapabilities.contains(FORK_V9.capabilityName()) || testCase.requiredCapabilities.contains(RRF.capabilityName())
49+
"Tests using FORK are skipped since we don't support multiple FORKs",
50+
testCase.requiredCapabilities.contains(FORK_V9.capabilityName())
5151
);
5252

5353
assumeFalse(

x-pack/plugin/esql/qa/testFixtures/src/main/resources/rerank.csv-spec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,16 @@ book_no:keyword | title:text | author
143143
;
144144

145145

146-
reranker after RRF
146+
reranker after FUSE
147147
required_capability: fork_v9
148-
required_capability: rrf
148+
required_capability: fuse
149149
required_capability: match_operator_colon
150150
required_capability: rerank
151151

152152
FROM books METADATA _id, _index, _score
153153
| FORK ( WHERE title:"Tolkien" | SORT _score, _id DESC | LIMIT 3 )
154154
( WHERE author:"Tolkien" | SORT _score, _id DESC | LIMIT 3 )
155-
| RRF
155+
| FUSE
156156
| RERANK "Tolkien" ON title WITH inferenceId=test_reranker
157157
| EVAL _score=ROUND(_score, 2)
158158
| SORT _score DESC, book_no ASC

0 commit comments

Comments
 (0)