Skip to content

Commit 03ea0e9

Browse files
committed
Merge branch 'main' into disable-auto-expand
Signed-off-by: Vinay Krishna Pudyodu <[email protected]>
2 parents c6a1d64 + 7a0e8fb commit 03ea0e9

File tree

189 files changed

+2524
-5153
lines changed

Some content is hidden

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

189 files changed

+2524
-5153
lines changed

.github/workflows/links.yml

Lines changed: 1 addition & 1 deletion
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

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
2323
- Add stats for remote publication failure and move download failure stats to remote methods([#16682](https://github.com/opensearch-project/OpenSearch/pull/16682/))
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))
26+
- 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))
2629

2730
### Dependencies
2831
- Bump `com.google.cloud:google-cloud-core-http` from 2.23.0 to 2.47.0 ([#16504](https://github.com/opensearch-project/OpenSearch/pull/16504))
@@ -31,18 +34,26 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
3134
- Bump `com.google.apis:google-api-services-compute` from v1-rev20240407-2.0.0 to v1-rev20241105-2.0.0 ([#16502](https://github.com/opensearch-project/OpenSearch/pull/16502), [#16548](https://github.com/opensearch-project/OpenSearch/pull/16548), [#16613](https://github.com/opensearch-project/OpenSearch/pull/16613))
3235
- Bump `com.azure:azure-storage-blob` from 12.23.0 to 12.28.1 ([#16501](https://github.com/opensearch-project/OpenSearch/pull/16501))
3336
- Bump `org.apache.hadoop:hadoop-minicluster` from 3.4.0 to 3.4.1 ([#16550](https://github.com/opensearch-project/OpenSearch/pull/16550))
34-
- Bump `org.apache.xmlbeans:xmlbeans` from 5.2.1 to 5.2.2 ([#16612](https://github.com/opensearch-project/OpenSearch/pull/16612))
37+
- 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))
3538
- 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))
36-
- Bump `lycheeverse/lychee-action` from 2.0.2 to 2.1.0 ([#16610](https://github.com/opensearch-project/OpenSearch/pull/16610))
39+
- 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))
3740
- Bump `me.champeau.gradle.japicmp` from 0.4.4 to 0.4.5 ([#16614](https://github.com/opensearch-project/OpenSearch/pull/16614))
3841
- 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))
3942
- Bump `Netty` from 4.1.114.Final to 4.1.115.Final ([#16661](https://github.com/opensearch-project/OpenSearch/pull/16661))
4043
- 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))
4144
- Bump `codecov/codecov-action` from 4 to 5 ([#16667](https://github.com/opensearch-project/OpenSearch/pull/16667))
42-
- Bump `org.apache.logging.log4j:log4j-core` from 2.24.1 to 2.24.2 ([#16718](https://github.com/opensearch-project/OpenSearch/pull/16718))
45+
- 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))
4346
- Bump `jackson` from 2.17.2 to 2.18.2 ([#16733](https://github.com/opensearch-project/OpenSearch/pull/16733))
44-
- Bump `ch.qos.logback:logback-classic` from 1.2.13 to 1.5.12 ([#16716](https://github.com/opensearch-project/OpenSearch/pull/16716))
47+
- 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))
4548
- Bump `com.azure:azure-identity` from 1.13.2 to 1.14.2 ([#16778](https://github.com/opensearch-project/OpenSearch/pull/16778))
49+
- Bump Apache Lucene from 9.12.0 to 9.12.1 ([#16846](https://github.com/opensearch-project/OpenSearch/pull/16846))
50+
- Bump `com.gradle.develocity` from 3.18.2 to 3.19 ([#16855](https://github.com/opensearch-project/OpenSearch/pull/16855))
51+
- Bump `org.jline:jline` from 3.27.1 to 3.28.0 ([#16857](https://github.com/opensearch-project/OpenSearch/pull/16857))
52+
- Bump `com.azure:azure-core` from 1.51.0 to 1.54.1 ([#16856](https://github.com/opensearch-project/OpenSearch/pull/16856))
53+
- Bump `com.nimbusds:oauth2-oidc-sdk` from 11.19.1 to 11.20.1 ([#16895](https://github.com/opensearch-project/OpenSearch/pull/16895))
54+
- Bump `com.netflix.nebula.ospackage-base` from 11.10.0 to 11.10.1 ([#16896](https://github.com/opensearch-project/OpenSearch/pull/16896))
55+
- Bump `com.microsoft.azure:msal4j` from 1.17.2 to 1.18.0 ([#16918](https://github.com/opensearch-project/OpenSearch/pull/16918))
56+
- Bump `org.apache.commons:commons-text` from 1.12.0 to 1.13.0 ([#16919](https://github.com/opensearch-project/OpenSearch/pull/16919))
4657

4758
### Changed
4859
- Indexed IP field supports `terms_query` with more than 1025 IP masks [#16391](https://github.com/opensearch-project/OpenSearch/pull/16391)
@@ -68,6 +79,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6879
- Ensure consistency of system flag on IndexMetadata after diff is applied ([#16644](https://github.com/opensearch-project/OpenSearch/pull/16644))
6980
- Skip remote-repositories validations for node-joins when RepositoriesService is not in sync with cluster-state ([#16763](https://github.com/opensearch-project/OpenSearch/pull/16763))
7081
- Fix _list/shards API failing when closed indices are present ([#16606](https://github.com/opensearch-project/OpenSearch/pull/16606))
82+
- Fix remote shards balance ([#15335](https://github.com/opensearch-project/OpenSearch/pull/15335))
7183

7284
### Security
7385

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

Lines changed: 24 additions & 9 deletions
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");

buildSrc/src/testKit/thirdPartyAudit/sample_jars/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repositories {
1717
}
1818

1919
dependencies {
20-
implementation "org.apache.logging.log4j:log4j-core:2.24.2"
20+
implementation "org.apache.logging.log4j:log4j-core:2.24.3"
2121
}
2222

2323
["0.0.1", "0.0.2"].forEach { v ->

distribution/packages/build.gradle

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
22
opensearch = "3.0.0"
3-
lucene = "9.12.0"
3+
lucene = "9.12.1"
44

55
bundled_jdk_vendor = "adoptium"
66
bundled_jdk = "23.0.1+11"
@@ -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

Lines changed: 0 additions & 1 deletion
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) {

libs/core/licenses/lucene-core-9.12.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
91447c90c1180122142773b5baddaf8547124794

libs/core/src/main/java/org/opensearch/Version.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ public class Version implements Comparable<Version>, ToXContentFragment {
112112
public static final Version V_2_17_1 = new Version(2170199, org.apache.lucene.util.Version.LUCENE_9_11_1);
113113
public static final Version V_2_17_2 = new Version(2170299, org.apache.lucene.util.Version.LUCENE_9_11_1);
114114
public static final Version V_2_18_0 = new Version(2180099, org.apache.lucene.util.Version.LUCENE_9_12_0);
115-
public static final Version V_2_18_1 = new Version(2180199, org.apache.lucene.util.Version.LUCENE_9_12_0);
116-
public static final Version V_3_0_0 = new Version(3000099, org.apache.lucene.util.Version.LUCENE_9_12_0);
117-
public static final Version V_2_19_0 = new Version(2190099, org.apache.lucene.util.Version.LUCENE_9_12_0);
115+
public static final Version V_2_18_1 = new Version(2180199, org.apache.lucene.util.Version.LUCENE_9_12_1);
116+
public static final Version V_2_19_0 = new Version(2190099, org.apache.lucene.util.Version.LUCENE_9_12_1);
117+
public static final Version V_3_0_0 = new Version(3000099, org.apache.lucene.util.Version.LUCENE_9_12_1);
118118
public static final Version CURRENT = V_3_0_0;
119119

120120
public static Version fromId(int id) {

modules/lang-expression/licenses/lucene-expressions-9.12.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
667ee99f31c8e42eac70b0adcf8deb4232935430

plugins/analysis-icu/licenses/lucene-analysis-icu-9.12.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
abaef4767ad64289e62abdd4606bf6ed2ddea0fd

plugins/analysis-kuromoji/licenses/lucene-analysis-kuromoji-9.12.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
635c41143b896f402589d29e33695dcfabae9cc5

plugins/analysis-nori/licenses/lucene-analysis-nori-9.12.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
e265410a6a4d9cd23b2e9c73321e6bd307bc1422

plugins/analysis-phonetic/licenses/lucene-analysis-phonetic-9.12.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3787b8edc0cfad21998abc6aeb9d2cbf152b4b26

plugins/analysis-smartcn/licenses/lucene-analysis-smartcn-9.12.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
e935f600bf153c46f5725198ca9352c32025f274

plugins/analysis-stempel/licenses/lucene-analysis-stempel-9.12.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
c4e1c94b1adbd1cb9dbdc0d3c2d2c33beabfc777

plugins/analysis-ukrainian/licenses/lucene-analysis-morfologik-9.12.0.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
d8e4716dab6d829e7b37a8b185cbd242650aeb9e

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
a257a5dd25dda1c97a99b56d5b9c1e56c12ae554

plugins/events-correlation-engine/build.gradle

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)