forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 2025/01/22/forbid-write-block-removal
- Loading branch information
Showing
162 changed files
with
3,651 additions
and
2,600 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pr: 120392 | ||
summary: Test/107515 restore template with match only text mapper it fail | ||
area: Search | ||
type: bug | ||
issues: | ||
- 107515 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 120487 | ||
summary: Fix cat_component_templates documentation | ||
area: CAT APIs | ||
type: bug | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 120494 | ||
summary: Update grammar to rely on `indexPattern` instead of identifier in join target | ||
area: ES|QL | ||
type: enhancement | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 120617 | ||
summary: Fix queries with document level security on lookup indexes | ||
area: ES|QL | ||
type: bug | ||
issues: [120509] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pr: 120717 | ||
summary: Fix LTR rescorer throws 'local model reference is null' on multi-shards index when explained is enabled | ||
area: Ranking | ||
type: bug | ||
issues: | ||
- 120739 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
pr: 120748 | ||
summary: Removing support for types field in watcher search | ||
area: Watcher | ||
type: breaking | ||
issues: [] | ||
breaking: | ||
title: Removing support for types field in watcher search | ||
area: REST API | ||
details: >- | ||
Previously, setting the `input.search.request.types` field in the payload when creating a watcher to an empty array | ||
was allowed, although it resulted in a deprecation warning and had no effect (and any value other than an empty | ||
array would result in an error). Now, support for this field is entirely removed, and the empty array will also | ||
result in an error. | ||
impact: Users should stop setting this field (which did not have any effect anyway). | ||
notable: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pr: 120752 | ||
summary: Refresh source index before reindexing data stream index | ||
area: Data streams | ||
type: bug | ||
issues: | ||
- 120314 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 120753 | ||
summary: Optimize `IngestDocMetadata` `isAvailable` | ||
area: Ingest Node | ||
type: enhancement | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 120781 | ||
summary: Add back `keep_alive` to `async_search.submit` rest-api-spec | ||
area: Search | ||
type: bug | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pr: 120809 | ||
summary: LTR sometines throw `NullPointerException:` Cannot read field "approximation" | ||
because "top" is null | ||
area: Ranking | ||
type: bug | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 0 additions & 48 deletions
48
...n/src/main18/java/org/elasticsearch/entitlement/qa/test/VersionSpecificNetworkChecks.java
This file was deleted.
Oops, something went wrong.
64 changes: 0 additions & 64 deletions
64
...n/src/main21/java/org/elasticsearch/entitlement/qa/test/VersionSpecificNetworkChecks.java
This file was deleted.
Oops, something went wrong.
63 changes: 63 additions & 0 deletions
63
...ent/qa/src/javaRestTest/java/org/elasticsearch/entitlement/qa/AbstractEntitlementsIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the "Elastic License | ||
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side | ||
* Public License v 1"; you may not use this file except in compliance with, at | ||
* your election, the "Elastic License 2.0", the "GNU Affero General Public | ||
* License v3.0 only", or the "Server Side Public License, v 1". | ||
*/ | ||
|
||
package org.elasticsearch.entitlement.qa; | ||
|
||
import org.elasticsearch.client.Request; | ||
import org.elasticsearch.client.Response; | ||
import org.elasticsearch.test.rest.ESRestTestCase; | ||
|
||
import java.io.IOException; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import static org.hamcrest.Matchers.containsString; | ||
import static org.hamcrest.Matchers.equalTo; | ||
|
||
public abstract class AbstractEntitlementsIT extends ESRestTestCase { | ||
|
||
static final EntitlementsTestRule.PolicyBuilder ALLOWED_TEST_ENTITLEMENTS = (builder, tempDir) -> { | ||
builder.value("create_class_loader"); | ||
builder.value("set_https_connection_properties"); | ||
builder.value("inbound_network"); | ||
builder.value("outbound_network"); | ||
builder.value("load_native_libraries"); | ||
builder.value( | ||
Map.of( | ||
"write_system_properties", | ||
Map.of("properties", List.of("es.entitlements.checkSetSystemProperty", "es.entitlements.checkClearSystemProperty")) | ||
) | ||
); | ||
}; | ||
|
||
private final String actionName; | ||
private final boolean expectAllowed; | ||
|
||
AbstractEntitlementsIT(String actionName, boolean expectAllowed) { | ||
this.actionName = actionName; | ||
this.expectAllowed = expectAllowed; | ||
} | ||
|
||
private Response executeCheck() throws IOException { | ||
var request = new Request("GET", "/_entitlement_check"); | ||
request.addParameter("action", actionName); | ||
return client().performRequest(request); | ||
} | ||
|
||
public void testAction() throws IOException { | ||
logger.info("Executing Entitlement test for [{}]", actionName); | ||
if (expectAllowed) { | ||
Response result = executeCheck(); | ||
assertThat(result.getStatusLine().getStatusCode(), equalTo(200)); | ||
} else { | ||
var exception = expectThrows(IOException.class, this::executeCheck); | ||
assertThat(exception.getMessage(), containsString("not_entitled_exception")); | ||
} | ||
} | ||
} |
Oops, something went wrong.