Skip to content

Commit 270bc13

Browse files
Merge branch 'main' of github.com:opensearch-project/OpenSearch into nested-starindex
2 parents 60829d2 + 7a0e8fb commit 270bc13

File tree

119 files changed

+2343
-5091
lines changed

Some content is hidden

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

119 files changed

+2343
-5091
lines changed

.github/workflows/links.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- name: lychee Link Checker
1515
id: lychee
16-
uses: lycheeverse/lychee-action@v2.1.0
16+
uses: lycheeverse/lychee-action@v2.2.0
1717
with:
1818
args: --accept=200,403,429 --exclude-mail **/*.html **/*.md **/*.txt **/*.json --exclude-file .lychee.excludes
1919
fail: true

CHANGELOG.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
2424
- Added a precaution to handle extreme date values during sorting to prevent `arithmetic_exception: long overflow` ([#16812](https://github.com/opensearch-project/OpenSearch/pull/16812)).
2525
- Add search replica stats to segment replication stats API ([#16678](https://github.com/opensearch-project/OpenSearch/pull/16678))
2626
- Introduce a setting to disable download of full cluster state from remote on term mismatch([#16798](https://github.com/opensearch-project/OpenSearch/pull/16798/))
27+
- Added ability to retrieve value from DocValues in a flat_object filed([#16802](https://github.com/opensearch-project/OpenSearch/pull/16802))
28+
- Introduce framework for auxiliary transports and an experimental gRPC transport plugin ([#16534](https://github.com/opensearch-project/OpenSearch/pull/16534))
2729
- Changes to support IP field in star tree indexing([#16641](https://github.com/opensearch-project/OpenSearch/pull/16641/))
2830
- Support object fields in star-tree index([#16728](https://github.com/opensearch-project/OpenSearch/pull/16728/))
2931

@@ -36,20 +38,24 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
3638
- Bump `org.apache.hadoop:hadoop-minicluster` from 3.4.0 to 3.4.1 ([#16550](https://github.com/opensearch-project/OpenSearch/pull/16550))
3739
- Bump `org.apache.xmlbeans:xmlbeans` from 5.2.1 to 5.3.0 ([#16612](https://github.com/opensearch-project/OpenSearch/pull/16612), [#16854](https://github.com/opensearch-project/OpenSearch/pull/16854))
3840
- Bump `com.nimbusds:nimbus-jose-jwt` from 9.41.1 to 9.47 ([#16611](https://github.com/opensearch-project/OpenSearch/pull/16611), [#16807](https://github.com/opensearch-project/OpenSearch/pull/16807))
39-
- Bump `lycheeverse/lychee-action` from 2.0.2 to 2.1.0 ([#16610](https://github.com/opensearch-project/OpenSearch/pull/16610))
41+
- Bump `lycheeverse/lychee-action` from 2.0.2 to 2.2.0 ([#16610](https://github.com/opensearch-project/OpenSearch/pull/16610), [#16897](https://github.com/opensearch-project/OpenSearch/pull/16897))
4042
- Bump `me.champeau.gradle.japicmp` from 0.4.4 to 0.4.5 ([#16614](https://github.com/opensearch-project/OpenSearch/pull/16614))
4143
- Bump `mockito` from 5.14.1 to 5.14.2, `objenesis` from 3.2 to 3.3 and `bytebuddy` from 1.15.4 to 1.15.10 ([#16655](https://github.com/opensearch-project/OpenSearch/pull/16655))
4244
- Bump `Netty` from 4.1.114.Final to 4.1.115.Final ([#16661](https://github.com/opensearch-project/OpenSearch/pull/16661))
4345
- Bump `org.xerial.snappy:snappy-java` from 1.1.10.6 to 1.1.10.7 ([#16665](https://github.com/opensearch-project/OpenSearch/pull/16665))
4446
- Bump `codecov/codecov-action` from 4 to 5 ([#16667](https://github.com/opensearch-project/OpenSearch/pull/16667))
4547
- Bump `org.apache.logging.log4j:log4j-core` from 2.24.1 to 2.24.3 ([#16718](https://github.com/opensearch-project/OpenSearch/pull/16718), [#16858](https://github.com/opensearch-project/OpenSearch/pull/16858))
4648
- Bump `jackson` from 2.17.2 to 2.18.2 ([#16733](https://github.com/opensearch-project/OpenSearch/pull/16733))
47-
- Bump `ch.qos.logback:logback-classic` from 1.2.13 to 1.5.12 ([#16716](https://github.com/opensearch-project/OpenSearch/pull/16716))
49+
- Bump `ch.qos.logback:logback-classic` from 1.2.13 to 1.5.15 ([#16716](https://github.com/opensearch-project/OpenSearch/pull/16716), [#16898](https://github.com/opensearch-project/OpenSearch/pull/16898))
4850
- Bump `com.azure:azure-identity` from 1.13.2 to 1.14.2 ([#16778](https://github.com/opensearch-project/OpenSearch/pull/16778))
4951
- Bump Apache Lucene from 9.12.0 to 9.12.1 ([#16846](https://github.com/opensearch-project/OpenSearch/pull/16846))
5052
- Bump `com.gradle.develocity` from 3.18.2 to 3.19 ([#16855](https://github.com/opensearch-project/OpenSearch/pull/16855))
5153
- Bump `org.jline:jline` from 3.27.1 to 3.28.0 ([#16857](https://github.com/opensearch-project/OpenSearch/pull/16857))
5254
- Bump `com.azure:azure-core` from 1.51.0 to 1.54.1 ([#16856](https://github.com/opensearch-project/OpenSearch/pull/16856))
55+
- Bump `com.nimbusds:oauth2-oidc-sdk` from 11.19.1 to 11.20.1 ([#16895](https://github.com/opensearch-project/OpenSearch/pull/16895))
56+
- Bump `com.netflix.nebula.ospackage-base` from 11.10.0 to 11.10.1 ([#16896](https://github.com/opensearch-project/OpenSearch/pull/16896))
57+
- Bump `com.microsoft.azure:msal4j` from 1.17.2 to 1.18.0 ([#16918](https://github.com/opensearch-project/OpenSearch/pull/16918))
58+
- Bump `org.apache.commons:commons-text` from 1.12.0 to 1.13.0 ([#16919](https://github.com/opensearch-project/OpenSearch/pull/16919))
5359

5460
### Changed
5561
- Indexed IP field supports `terms_query` with more than 1025 IP masks [#16391](https://github.com/opensearch-project/OpenSearch/pull/16391)

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

+24-9
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,7 @@ public Set<File> getJarsToScan() {
229229
@TaskAction
230230
public void runThirdPartyAudit() throws IOException {
231231
Set<File> jars = getJarsToScan();
232-
233-
extractJars(jars);
232+
Set<File> extractedJars = extractJars(jars);
234233

235234
final String forbiddenApisOutput = runForbiddenAPIsCli();
236235

@@ -248,7 +247,7 @@ public void runThirdPartyAudit() throws IOException {
248247

249248
Set<String> jdkJarHellClasses = null;
250249
if (this.jarHellEnabled) {
251-
jdkJarHellClasses = runJdkJarHellCheck();
250+
jdkJarHellClasses = runJdkJarHellCheck(extractedJars);
252251
}
253252

254253
if (missingClassExcludes != null) {
@@ -301,16 +300,26 @@ private void logForbiddenAPIsOutput(String forbiddenApisOutput) {
301300
getLogger().error("Forbidden APIs output:\n{}==end of forbidden APIs==", forbiddenApisOutput);
302301
}
303302

304-
private void extractJars(Set<File> jars) {
303+
/**
304+
* Extract project jars to build directory as specified by getJarExpandDir.
305+
* Handle multi release jars by keeping versions closest to `targetCompatibility` version.
306+
* @param jars to extract to build dir
307+
* @return File set of extracted jars
308+
*/
309+
private Set<File> extractJars(Set<File> jars) {
310+
Set<File> extractedJars = new TreeSet<>();
305311
File jarExpandDir = getJarExpandDir();
306312
// We need to clean up to make sure old dependencies don't linger
307313
getProject().delete(jarExpandDir);
308314

309315
jars.forEach(jar -> {
316+
String jarPrefix = jar.getName().replace(".jar", "");
317+
File jarSubDir = new File(jarExpandDir, jarPrefix);
318+
extractedJars.add(jarSubDir);
310319
FileTree jarFiles = getProject().zipTree(jar);
311320
getProject().copy(spec -> {
312321
spec.from(jarFiles);
313-
spec.into(jarExpandDir);
322+
spec.into(jarSubDir);
314323
// exclude classes from multi release jars
315324
spec.exclude("META-INF/versions/**");
316325
});
@@ -329,14 +338,16 @@ private void extractJars(Set<File> jars) {
329338
Integer.parseInt(targetCompatibility.get().getMajorVersion())
330339
).forEach(majorVersion -> getProject().copy(spec -> {
331340
spec.from(getProject().zipTree(jar));
332-
spec.into(jarExpandDir);
341+
spec.into(jarSubDir);
333342
String metaInfPrefix = "META-INF/versions/" + majorVersion;
334343
spec.include(metaInfPrefix + "/**");
335344
// Drop the version specific prefix
336345
spec.eachFile(details -> details.setPath(details.getPath().replace(metaInfPrefix, "")));
337346
spec.setIncludeEmptyDirs(false);
338347
}));
339348
});
349+
350+
return extractedJars;
340351
}
341352

342353
private void assertNoJarHell(Set<String> jdkJarHellClasses) {
@@ -398,7 +409,12 @@ private String runForbiddenAPIsCli() throws IOException {
398409
return forbiddenApisOutput;
399410
}
400411

401-
private Set<String> runJdkJarHellCheck() throws IOException {
412+
/**
413+
* Execute java with JDK_JAR_HELL_MAIN_CLASS against provided jars with OpenSearch core in the classpath.
414+
* @param jars to scan for jarHell violations.
415+
* @return standard out of jarHell process.
416+
*/
417+
private Set<String> runJdkJarHellCheck(Set<File> jars) throws IOException {
402418
ByteArrayOutputStream standardOut = new ByteArrayOutputStream();
403419
InjectedExecOps execOps = getProject().getObjects().newInstance(InjectedExecOps.class);
404420
ExecResult execResult = execOps.getExecOps().javaexec(spec -> {
@@ -407,9 +423,8 @@ private Set<String> runJdkJarHellCheck() throws IOException {
407423
getRuntimeConfiguration(),
408424
getProject().getConfigurations().getByName(CompileOnlyResolvePlugin.RESOLVEABLE_COMPILE_ONLY_CONFIGURATION_NAME)
409425
);
410-
411426
spec.getMainClass().set(JDK_JAR_HELL_MAIN_CLASS);
412-
spec.args(getJarExpandDir());
427+
spec.args(jars);
413428
spec.setIgnoreExitValue(true);
414429
if (javaHome != null) {
415430
spec.setExecutable(javaHome + "/bin/java");

distribution/packages/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ import java.util.regex.Pattern
6363
*/
6464

6565
plugins {
66-
id "com.netflix.nebula.ospackage-base" version "11.10.0"
66+
id "com.netflix.nebula.ospackage-base" version "11.10.1"
6767
}
6868

6969
void addProcessFilesTask(String type, boolean jdk) {

gradle/libs.versions.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ google_http_client = "1.44.1"
2727
google_auth = "1.29.0"
2828
tdigest = "3.3"
2929
hdrhistogram = "2.2.2"
30-
grpc = "1.68.0"
30+
grpc = "1.68.2"
3131

3232
# when updating the JNA version, also update the version in buildSrc/build.gradle
3333
jna = "5.13.0"

gradle/missing-javadoc.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ configure([
170170
project(":libs:opensearch-common"),
171171
project(":libs:opensearch-core"),
172172
project(":libs:opensearch-compress"),
173-
project(":plugins:events-correlation-engine"),
174173
project(":server")
175174
]) {
176175
project.tasks.withType(MissingJavadocTask) {

plugins/discovery-gce/licenses/grpc-api-1.68.0.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
a257a5dd25dda1c97a99b56d5b9c1e56c12ae554

plugins/events-correlation-engine/build.gradle

-21
This file was deleted.

plugins/events-correlation-engine/src/internalClusterTest/java/org/opensearch/plugin/correlation/EventsCorrelationPluginTransportIT.java

-177
This file was deleted.

0 commit comments

Comments
 (0)