Skip to content

Commit ab90b6c

Browse files
authored
Merge branch 'main' into remove-socket-access
Signed-off-by: Craig Perkins <[email protected]>
2 parents 003ec6e + b74d032 commit ab90b6c

File tree

393 files changed

+14616
-3642
lines changed

Some content is hidden

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

393 files changed

+14616
-3642
lines changed

.github/workflows/assemble.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
java: [ 21, 25 ]
11-
os: [ubuntu-latest, windows-latest, macos-13, ubuntu-24.04-arm]
11+
os: [ubuntu-latest, windows-latest, macos-15, ubuntu-24.04-arm]
1212
steps:
1313
- uses: actions/checkout@v5
1414
- name: Set up JDK ${{ matrix.java }}

.github/workflows/gradle-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/checkout@v5
2525
- name: Get changed files
2626
id: changed-files-specific
27-
uses: tj-actions/changed-files@v46.0.5
27+
uses: tj-actions/changed-files@v47.0.0
2828
with:
2929
files_ignore: |
3030
release-notes/*.md

.github/workflows/precommit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
java: [ 21, 25 ]
11-
os: [ubuntu-latest, windows-latest, macos-latest, macos-13, ubuntu-24.04-arm]
11+
os: [ubuntu-latest, windows-latest, macos-15, macos-15-intel, ubuntu-24.04-arm]
1212
include:
1313
- java: 21
1414
os: 'windows-2025'

CHANGELOG.md

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55

66
## [Unreleased 3.x]
77
### Added
8-
98
- Add support for a ForkJoinPool type ([#19008](https://github.com/opensearch-project/OpenSearch/pull/19008))
109
- Add seperate shard limit validation for local and remote indices ([#19532](https://github.com/opensearch-project/OpenSearch/pull/19532))
1110
- Use Lucene `pack` method for `half_float` and `usigned_long` when using `ApproximatePointRangeQuery`.
@@ -15,11 +14,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1514
- Add pluggable gRPC interceptors with explicit ordering([#19005](https://github.com/opensearch-project/OpenSearch/pull/19005))
1615
- Add BindableServices extension point to transport-grpc-spi ([#19304](https://github.com/opensearch-project/OpenSearch/pull/19304))
1716
- Add metrics for the merged segment warmer feature ([#18929](https://github.com/opensearch-project/OpenSearch/pull/18929))
17+
- Handle deleted documents for filter rewrite subaggregation optimization ([#19643](https://github.com/opensearch-project/OpenSearch/pull/19643))
1818
- Add pointer based lag metric in pull-based ingestion ([#19635](https://github.com/opensearch-project/OpenSearch/pull/19635))
1919
- Introduced internal API for retrieving metadata about requested indices from transport actions ([#18523](https://github.com/opensearch-project/OpenSearch/pull/18523))
2020
- Add cluster defaults for merge autoThrottle, maxMergeThreads, and maxMergeCount; Add segment size filter to the merged segment warmer ([#19629](https://github.com/opensearch-project/OpenSearch/pull/19629))
2121
- Add build-tooling to run in FIPS environment ([#18921](https://github.com/opensearch-project/OpenSearch/pull/18921))
2222
- Add SMILE/CBOR/YAML document format support to Bulk GRPC endpoint ([#19744](https://github.com/opensearch-project/OpenSearch/pull/19744))
23+
- Implement GRPC Search params `Highlight`and `Sort` ([#19868](https://github.com/opensearch-project/OpenSearch/pull/19868))
24+
- Implement GRPC ConstantScoreQuery, FuzzyQuery, MatchBoolPrefixQuery, MatchPhrasePrefix, PrefixQuery, MatchQuery ([#19854](https://github.com/opensearch-project/OpenSearch/pull/19854))
25+
- Add async periodic flush task support for pull-based ingestion ([#19878](https://github.com/opensearch-project/OpenSearch/pull/19878))
26+
- Add support for context aware segments ([#19098](https://github.com/opensearch-project/OpenSearch/pull/19098))
27+
- Implement GRPC FunctionScoreQuery ([#19888](https://github.com/opensearch-project/OpenSearch/pull/19888))
2328

2429
### Changed
2530
- Faster `terms` query creation for `keyword` field with index and docValues enabled ([#19350](https://github.com/opensearch-project/OpenSearch/pull/19350))
@@ -33,6 +38,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
3338
- Refactor the IndexingStats.Stats class to use the Builder pattern instead of constructors ([#19306](https://github.com/opensearch-project/OpenSearch/pull/19306))
3439
- Remove FeatureFlag.MERGED_SEGMENT_WARMER_EXPERIMENTAL_FLAG. ([#19715](https://github.com/opensearch-project/OpenSearch/pull/19715))
3540
- Replace java.security.AccessController with org.opensearch.secure_sm.AccessController in sub projects with SocketAccess class ([#19803](https://github.com/opensearch-project/OpenSearch/pull/19803))
41+
- Replace java.security.AccessController with org.opensearch.secure_sm.AccessController in discovery plugins ([#19802](https://github.com/opensearch-project/OpenSearch/pull/19802))
42+
- Change the default value of doc_values in WildcardFieldMapper to true. ([#19796](https://github.com/opensearch-project/OpenSearch/pull/19796))
43+
- Make Engine#loadHistoryUUID() protected and Origin#isFromTranslog() public ([#19753](https://github.com/opensearch-project/OpenSearch/pull/19752))
44+
- Bump opensearch-protobufs dependency to 0.23.0 and update transport-grpc module compatibility ([#19831](https://github.com/opensearch-project/OpenSearch/pull/19831))
45+
- Refactor the RefreshStats class to use the Builder pattern instead of constructors ([#19835](https://github.com/opensearch-project/OpenSearch/pull/19835))
46+
- Refactor the DocStats and StoreStats class to use the Builder pattern instead of constructors ([#19863](https://github.com/opensearch-project/OpenSearch/pull/19863))
47+
- Pass registry of headers from ActionPlugin.getRestHeaders to ActionPlugin.getRestHandlerWrapper ([#19875](https://github.com/opensearch-project/OpenSearch/pull/19875))
3648

3749
### Fixed
3850
- Fix Allocation and Rebalance Constraints of WeightFunction are incorrectly reset ([#19012](https://github.com/opensearch-project/OpenSearch/pull/19012))
@@ -46,10 +58,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4658
- Fix file-based ingestion consumer to handle start point beyond max line number([#19757])(https://github.com/opensearch-project/OpenSearch/pull/19757))
4759
- Fix IndexOutOfBoundsException when running include/exclude on non-existent prefix in terms aggregations ([#19637](https://github.com/opensearch-project/OpenSearch/pull/19637))
4860
- Fixed assertion unsafe use of ClusterService.state() in ResourceUsageCollectorService ([#19775])(https://github.com/opensearch-project/OpenSearch/pull/19775))
61+
- Fix Unified highlighter for nested fields when using matchPhrasePrefixQuery ([#19442](https://github.com/opensearch-project/OpenSearch/pull/19442))
4962
- Add S3Repository.LEGACY_MD5_CHECKSUM_CALCULATION to list of repository-s3 settings ([#19788](https://github.com/opensearch-project/OpenSearch/pull/19788))
63+
- Fix NPE of ScriptScoreQuery ([#19650](https://github.com/opensearch-project/OpenSearch/pull/19650))
5064

5165
### Dependencies
52-
- Update to Gradle 9.1 ([#19575](https://github.com/opensearch-project/OpenSearch/pull/19575))
66+
- Update to Gradle 9.2 ([#19575](https://github.com/opensearch-project/OpenSearch/pull/19575)) ([#19856](https://github.com/opensearch-project/OpenSearch/pull/19856))
67+
- Update bundled JDK to JDK-25 ([#19314](https://github.com/opensearch-project/OpenSearch/issues/19314))
5368
- Bump `peter-evans/create-or-update-comment` from 4 to 5 ([#19536](https://github.com/opensearch-project/OpenSearch/pull/19536))
5469
- Bump `com.azure:azure-core-http-netty` from 1.15.12 to 1.16.1 ([#19533](https://github.com/opensearch-project/OpenSearch/pull/19533))
5570
- Bump `org.apache.zookeeper:zookeeper` from 3.9.3 to 3.9.4 ([#19535](https://github.com/opensearch-project/OpenSearch/pull/19535))
@@ -64,10 +79,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6479
- Bump ch.qos.logback modules from 1.5.18 to 1.5.20 in HDFS test fixture ([#19763](https://github.com/opensearch-project/OpenSearch/pull/19763))
6580
- Bump `github/codeql-action` from 3 to 4 ([#19785](https://github.com/opensearch-project/OpenSearch/pull/19785))
6681
- Bump `gradle/actions` from 4 to 5 ([#19781](https://github.com/opensearch-project/OpenSearch/pull/19781))
82+
- Bump org.bouncycastle:bc-fips from 2.1.1 to 2.1.2 ([#19818](https://github.com/opensearch-project/OpenSearch/pull/19818))
83+
- Bump `com.google.http-client:google-http-client-gson` from 1.47.1 to 2.0.0 ([#19253](https://github.com/opensearch-project/OpenSearch/pull/19253))
84+
- Bump `com.sun.xml.bind:jaxb-impl` from 2.2.3-1 to 4.0.6 ([#19472](https://github.com/opensearch-project/OpenSearch/pull/19472))
85+
- Bump `tj-actions/changed-files` from 46.0.5 to 47.0.0 ([#19873](https://github.com/opensearch-project/OpenSearch/pull/19873))
86+
- Bump `com.google.api.grpc:proto-google-iam-v1` from 1.55.0 to 1.57.0 ([#19872](https://github.com/opensearch-project/OpenSearch/pull/19872))
87+
- Bump `org.apache.commons:commons-text` from 1.13.1 to 1.14.0 ([#19871](https://github.com/opensearch-project/OpenSearch/pull/19871))
88+
- Exclude group com.microsoft.sqlserver from hadoop-minicluster ([#19889](https://github.com/opensearch-project/OpenSearch/pull/19889))
6789

68-
### Deprecated
90+
- ### Deprecated
6991
- Deprecated existing constructors in ThreadPoolStats.Stats in favor of the new Builder ([#19317](https://github.com/opensearch-project/OpenSearch/pull/19317))
7092
- Deprecated existing constructors in IndexingStats.Stats in favor of the new Builder ([#19306](https://github.com/opensearch-project/OpenSearch/pull/19306))
93+
- Deprecated existing constructors in RefreshStats in favor of the new Builder ([#19835](https://github.com/opensearch-project/OpenSearch/pull/19835))
94+
- Deprecated existing constructors in DocStats and StoreStats in favor of the new Builder ([#19863](https://github.com/opensearch-project/OpenSearch/pull/19863))
7195

7296
### Removed
7397

build.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ plugins {
5555
id 'lifecycle-base'
5656
id 'opensearch.docker-support'
5757
id 'opensearch.global-build-info'
58-
id "com.diffplug.spotless" version "6.25.0" apply false
58+
id "com.diffplug.spotless" version "8.0.0" apply false
5959
id "org.gradle.test-retry" version "1.6.2" apply false
6060
id "test-report-aggregation"
6161
id 'jacoco-report-aggregation'
@@ -271,10 +271,7 @@ allprojects {
271271
memoryMaximumSize = project.property('options.forkOptions.memoryMaximumSize')
272272
}
273273

274-
// See please https://bugs.openjdk.java.net/browse/JDK-8209058
275-
if (BuildParams.runtimeJavaVersion > JavaVersion.VERSION_11) {
276-
compile.options.compilerArgs << '-Werror'
277-
}
274+
compile.options.compilerArgs << '-Werror'
278275
compile.options.compilerArgs << '-Xlint:auxiliaryclass'
279276
compile.options.compilerArgs << '-Xlint:cast'
280277
compile.options.compilerArgs << '-Xlint:classfile'

buildSrc/src/integTest/groovy/org/opensearch/gradle/DistributionDownloadPluginFuncTest.groovy

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
package org.opensearch.gradle
3131

3232

33+
import org.opensearch.gradle.Architecture
3334
import org.opensearch.gradle.fixtures.AbstractGradleFuncTest
3435
import org.opensearch.gradle.transform.SymbolicLinkPreservingUntarTransform
3536
import org.gradle.testkit.runner.TaskOutcome
@@ -65,6 +66,7 @@ class DistributionDownloadPluginFuncTest extends AbstractGradleFuncTest {
6566
given:
6667
def version = VersionProperties.getOpenSearch()
6768
def platform = OpenSearchDistribution.Platform.LINUX
69+
def arch = Architecture.current().name().toLowerCase()
6870

6971
buildFile << applyPluginAndSetupDistro(version, platform)
7072
buildFile << """
@@ -83,14 +85,15 @@ class DistributionDownloadPluginFuncTest extends AbstractGradleFuncTest {
8385

8486
then:
8587
result.task(":setupDistro").outcome == TaskOutcome.SUCCESS
86-
result.output.count("Unpacking opensearch-${version}-linux-x64.tar.gz " +
88+
result.output.count("Unpacking opensearch-${version}-linux-${arch}.tar.gz " +
8789
"using SymbolicLinkPreservingUntarTransform.") == 0
8890
}
8991

9092
def "transforms are reused across projects"() {
9193
given:
9294
def version = VersionProperties.getOpenSearch()
9395
def platform = OpenSearchDistribution.Platform.LINUX
96+
def arch = Architecture.current().name().toLowerCase()
9497

9598
3.times {
9699
testProjectDir.newFolder("sub-$it")
@@ -122,7 +125,7 @@ class DistributionDownloadPluginFuncTest extends AbstractGradleFuncTest {
122125

123126
then:
124127
result.tasks.size() == 3
125-
result.output.count("Unpacking opensearch-${version}-linux-x64.tar.gz " +
128+
result.output.count("Unpacking opensearch-${version}-linux-${arch}.tar.gz " +
126129
"using SymbolicLinkPreservingUntarTransform.") == 1
127130
}
128131

buildSrc/src/integTest/groovy/org/opensearch/gradle/fixtures/DistributionDownloadFixture.groovy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
package org.opensearch.gradle.fixtures
3131

3232

33+
import org.opensearch.gradle.Architecture
3334
import org.opensearch.gradle.OpenSearchDistribution
3435
import org.opensearch.gradle.Version
3536
import org.opensearch.gradle.VersionProperties
@@ -66,11 +67,12 @@ class DistributionDownloadFixture {
6667
private static String urlPath(String version, OpenSearchDistribution.Platform platform) {
6768
String fileType = ((platform == OpenSearchDistribution.Platform.LINUX ||
6869
platform == OpenSearchDistribution.Platform.DARWIN)) ? "tar.gz" : "zip"
70+
String arch = Architecture.current().name().toLowerCase()
6971
if (Version.fromString(version).onOrAfter(Version.fromString("1.0.0"))) {
7072
if (version.contains("SNAPSHOT")) {
71-
return "/snapshots/core/opensearch/${version}/opensearch-min-${version}-${platform}-x64-latest.$fileType"
73+
return "/snapshots/core/opensearch/${version}/opensearch-min-${version}-${platform}-${arch}-latest.$fileType"
7274
}
73-
return "/releases/core/opensearch/${version}/opensearch-min-${version}-${platform}-x64.$fileType"
75+
return "/releases/core/opensearch/${version}/opensearch-min-${version}-${platform}-${arch}.$fileType"
7476
} else {
7577
return "/downloads/elasticsearch/elasticsearch-oss-${version}-${platform}-x86_64.$fileType"
7678
}

buildSrc/src/integTest/groovy/org/opensearch/gradle/internal/InternalDistributionDownloadPluginFuncTest.groovy

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
package org.opensearch.gradle.internal
3131

32+
import org.opensearch.gradle.Architecture
3233
import org.opensearch.gradle.VersionProperties
3334
import org.opensearch.gradle.fixtures.AbstractGradleFuncTest
3435
import org.gradle.testkit.runner.GradleRunner
@@ -59,7 +60,8 @@ class InternalDistributionDownloadPluginFuncTest extends AbstractGradleFuncTest
5960
def "resolves current version from local build"() {
6061
given:
6162
internalBuild()
62-
localDistroSetup()
63+
def archive = archiveTask()
64+
localDistroSetup(archive)
6365
def distroVersion = VersionProperties.getOpenSearch()
6466
buildFile << """
6567
apply plugin: 'opensearch.internal-distribution-download'
@@ -82,7 +84,7 @@ class InternalDistributionDownloadPluginFuncTest extends AbstractGradleFuncTest
8284
def result = gradleRunner("setupDistro", '-g', testProjectDir.newFolder('GUH').path).build()
8385

8486
then:
85-
result.task(":distribution:archives:linux-tar:buildExpanded").outcome == TaskOutcome.SUCCESS
87+
result.task(":distribution:archives:${archive}:buildExpanded").outcome == TaskOutcome.SUCCESS
8688
result.task(":setupDistro").outcome == TaskOutcome.SUCCESS
8789
assertExtractedDistroIsCreated("build/distro", 'current-marker.txt')
8890
}
@@ -150,42 +152,47 @@ class InternalDistributionDownloadPluginFuncTest extends AbstractGradleFuncTest
150152
settingsFile << """
151153
include ':distribution:bwc:minor'
152154
"""
155+
def archive = archiveTask()
153156
def bwcSubProjectFolder = testProjectDir.newFolder("distribution", "bwc", "minor")
154157
new File(bwcSubProjectFolder, 'bwc-marker.txt') << "bwc=minor"
155158
new File(bwcSubProjectFolder, 'build.gradle') << """
156159
apply plugin:'base'
157160
158161
// packed distro
159-
configurations.create("linux-tar")
162+
configurations.create("${archive}")
160163
tasks.register("buildBwcTask", Tar) {
161164
from('bwc-marker.txt')
162165
archiveExtension = "tar.gz"
163166
compression = Compression.GZIP
164167
}
165168
artifacts {
166-
it.add("linux-tar", buildBwcTask)
169+
it.add("${archive}", buildBwcTask)
167170
}
168171
169172
// expanded distro
170-
configurations.create("expanded-linux-tar")
173+
configurations.create("expanded-${archive}")
171174
def expandedTask = tasks.register("buildBwcExpandedTask", Copy) {
172175
from('bwc-marker.txt')
173176
into('build/install/opensearch-distro')
174177
}
175178
artifacts {
176-
it.add("expanded-linux-tar", file('build/install')) {
179+
it.add("expanded-${archive}", file('build/install')) {
177180
builtBy expandedTask
178181
type = 'directory'
179182
}
180183
}
181184
"""
182185
}
183186

184-
private void localDistroSetup() {
187+
private String archiveTask() {
188+
return Architecture.current() == Architecture.X64 ? "linux-tar" : "linux-${Architecture.current().name().toLowerCase()}-tar";
189+
}
190+
191+
private void localDistroSetup(def archive) {
185192
settingsFile << """
186-
include ":distribution:archives:linux-tar"
193+
include ":distribution:archives:${archive}"
187194
"""
188-
def bwcSubProjectFolder = testProjectDir.newFolder("distribution", "archives", "linux-tar")
195+
def bwcSubProjectFolder = testProjectDir.newFolder("distribution", "archives", "${archive}")
189196
new File(bwcSubProjectFolder, 'current-marker.txt') << "current"
190197
new File(bwcSubProjectFolder, 'build.gradle') << """
191198
import org.gradle.api.internal.artifacts.ArtifactAttributes;

buildSrc/src/main/java/org/opensearch/gradle/precommit/ThirdPartyAuditPrecommitPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class ThirdPartyAuditPrecommitPlugin extends PrecommitPlugin {
5151
public TaskProvider<? extends Task> createTask(Project project) {
5252
project.getPlugins().apply(CompileOnlyResolvePlugin.class);
5353
project.getConfigurations().create("forbiddenApisCliJar");
54-
project.getDependencies().add("forbiddenApisCliJar", "de.thetaphi:forbiddenapis:3.8");
54+
project.getDependencies().add("forbiddenApisCliJar", "de.thetaphi:forbiddenapis:3.10");
5555

5656
Configuration jdkJarHellConfig = project.getConfigurations().create(JDK_JAR_HELL_CONFIG_NAME);
5757
if (BuildParams.isInternal() && project.getPath().equals(":libs:opensearch-core") == false) {

buildSrc/src/main/java/org/opensearch/gradle/test/DistroTestPlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@
7777
import java.util.stream.Stream;
7878

7979
public class DistroTestPlugin implements Plugin<Project> {
80-
private static final String SYSTEM_JDK_VERSION = "24.0.2+12";
80+
private static final String SYSTEM_JDK_VERSION = "25.0.1+8";
8181
private static final String SYSTEM_JDK_VENDOR = "adoptium";
82-
private static final String GRADLE_JDK_VERSION = "24.0.2+12";
82+
private static final String GRADLE_JDK_VERSION = "25.0.1+8";
8383
private static final String GRADLE_JDK_VENDOR = "adoptium";
8484

8585
// all distributions used by distro tests. this is temporary until tests are per distribution

0 commit comments

Comments
 (0)