Skip to content

Commit a859a4f

Browse files
authored
Merge branch 'main' into fix-representative-count
2 parents be6e569 + 091ea9a commit a859a4f

File tree

156 files changed

+9104
-3092
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+9104
-3092
lines changed

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/dependencies/patches/hdfs/HdfsClassPatcher.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
import java.util.regex.Pattern;
4141

4242
import static java.util.Map.entry;
43+
import static org.objectweb.asm.ClassWriter.COMPUTE_FRAMES;
44+
import static org.objectweb.asm.ClassWriter.COMPUTE_MAXS;
4345

4446
@CacheableTransform
4547
public abstract class HdfsClassPatcher implements TransformAction<HdfsClassPatcher.Parameters> {
@@ -128,7 +130,7 @@ private static void patchJar(File inputFile, File outputFile, Map<String, Functi
128130
byte[] classToPatch = jarFile.getInputStream(entry).readAllBytes();
129131

130132
ClassReader classReader = new ClassReader(classToPatch);
131-
ClassWriter classWriter = new ClassWriter(classReader, 0);
133+
ClassWriter classWriter = new ClassWriter(classReader, COMPUTE_FRAMES | COMPUTE_MAXS);
132134
classReader.accept(classPatcher.apply(classWriter), 0);
133135

134136
jos.write(classWriter.toByteArray());

distribution/tools/plugin-cli/src/test/java/org/elasticsearch/plugins/cli/InstallPluginActionTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
import org.elasticsearch.core.Tuple;
4949
import org.elasticsearch.env.Environment;
5050
import org.elasticsearch.env.TestEnvironment;
51+
import org.elasticsearch.jdk.RuntimeVersionFeature;
5152
import org.elasticsearch.plugin.scanner.NamedComponentScanner;
5253
import org.elasticsearch.plugins.Platforms;
5354
import org.elasticsearch.plugins.PluginDescriptor;
@@ -891,6 +892,7 @@ public void testInstallMisspelledOfficialPlugins() {
891892
}
892893

893894
public void testBatchFlag() throws Exception {
895+
assumeTrue("security policy validation only available with SecurityManager", RuntimeVersionFeature.isSecurityManagerAvailable());
894896
installPlugin(true);
895897
assertThat(terminal.getErrorOutput(), containsString("WARNING: plugin requires additional permissions"));
896898
assertThat(terminal.getOutput(), containsString("-> Downloading"));
@@ -1529,6 +1531,7 @@ private void assertPolicyConfirmation(Tuple<Path, Environment> pathEnvironmentTu
15291531
}
15301532

15311533
public void testPolicyConfirmation() throws Exception {
1534+
assumeTrue("security policy parsing only available with SecurityManager", RuntimeVersionFeature.isSecurityManagerAvailable());
15321535
writePluginSecurityPolicy(pluginDir, "getClassLoader", "setFactory");
15331536
InstallablePlugin pluginZip = createPluginZip("fake", pluginDir);
15341537

distribution/tools/server-cli/src/main/java/org/elasticsearch/server/cli/SystemJvmOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ private static Stream<String> maybeAttachEntitlementAgent(boolean useEntitlement
180180
}
181181
// We instrument classes in these modules to call the bridge. Because the bridge gets patched
182182
// into java.base, we must export the bridge from java.base to these modules, as a comma-separated list
183-
String modulesContainingEntitlementInstrumentation = "java.logging,java.net.http,java.naming";
183+
String modulesContainingEntitlementInstrumentation = "java.logging,java.net.http,java.naming,jdk.net";
184184
return Stream.of(
185185
"-Des.entitlements.enabled=true",
186186
"-XX:+EnableDynamicAgentLoading",

docs/changelog/112903.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ breaking:
1313
`single-node`.
1414
impact: >-
1515
Remove any value for `discovery.type` from your `elasticsearch.yml`
16-
configuration file.
16+
configuration file except for `multi-node` and `single-node`.
1717
notable: false

docs/changelog/113757.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 113757
2+
summary: Store arrays offsets for keyword fields natively with synthetic source instead of falling back to ignored source.
3+
area: Mapping
4+
type: enhancement
5+
issues: []

docs/changelog/121948.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 121948
2+
summary: Add initial grammar and changes for FORK
3+
area: ES|QL
4+
type: feature
5+
issues: []

docs/changelog/122660.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 122660
2+
summary: Render `aggregate_metric_double`
3+
area: "ES|QL"
4+
type: enhancement
5+
issues: []

docs/changelog/122708.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 122708
2+
summary: Support partial results in CCS in ES|QL
3+
area: ES|QL
4+
type: enhancement
5+
issues: []

docs/changelog/122951.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 122951
2+
summary: Updates the deprecation info API to not warn about system indices and data
3+
streams
4+
area: Indices APIs
5+
type: bug
6+
issues: []

docs/reference/migration/apis/data-stream-reindex.asciidoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ from the original backing indices are copied to the resulting backing indices.
2121
This api runs in the background because reindexing all indices in a large data stream
2222
is expected to take a large amount of time and resources. The endpoint will return immediately and a persistent
2323
task will be created to run in the background. The current status of the task can be checked with
24-
the <<data-stream-reindex-status-api,reindex status API>>. This status will be available for 24 hours after the task completes, whether
25-
it finished successfully or failed. If the status is still available for a task, the task must be cancelled before it can be re-run.
26-
A running or recently completed data stream reindex task can be cancelled using the <<data-stream-reindex-cancel-api,reindex cancel API>>.
24+
the <<data-stream-reindex-status-api,reindex status API>>. This status will be available for 24 hours after the task
25+
completes, whether it finished successfully or failed. However, only the last status is retained so re-running a reindex
26+
will overwrite the previous status for that data stream. A running or recently completed data stream reindex task can be
27+
cancelled using the <<data-stream-reindex-cancel-api,reindex cancel API>>.
2728

2829
///////////////////////////////////////////////////////////
2930
[source,console]

0 commit comments

Comments
 (0)