Skip to content

Commit ab34f93

Browse files
authored
Merge branch 'main' into dependabot/gradle/distribution/tools/upgrade-cli/com.google.jimfs-jimfs-1.3.1
Signed-off-by: Craig Perkins <[email protected]>
2 parents f96707f + 8f69dcf commit ab34f93

File tree

12 files changed

+52
-63
lines changed

12 files changed

+52
-63
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
3838
### Dependencies
3939
- Bump `stefanzweifel/git-auto-commit-action` from 5 to 6 ([#18524](https://github.com/opensearch-project/OpenSearch/pull/18524))
4040
- Bump Apache Lucene to 10.2.2 ([#18573](https://github.com/opensearch-project/OpenSearch/pull/18573))
41-
- Bump `org.apache.logging.log4j:log4j-core` from 2.24.3 to 2.25.0 ([#18589](https://github.com/opensearch-project/OpenSearch/pull/18589))
41+
- Bump `org.apache.logging.log4j:log4j-core` from 2.24.3 to 2.25.1 ([#18589](https://github.com/opensearch-project/OpenSearch/pull/18589), [#18744](https://github.com/opensearch-project/OpenSearch/pull/18744))
4242
- Bump `com.google.code.gson:gson` from 2.13.0 to 2.13.1 ([#18585](https://github.com/opensearch-project/OpenSearch/pull/18585))
4343
- Bump `com.azure:azure-core-http-netty` from 1.15.11 to 1.15.12 ([#18586](https://github.com/opensearch-project/OpenSearch/pull/18586))
4444
- Bump `com.squareup.okio:okio` from 3.13.0 to 3.15.0 ([#18645](https://github.com/opensearch-project/OpenSearch/pull/18645), [#18689](https://github.com/opensearch-project/OpenSearch/pull/18689))
@@ -51,7 +51,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5151
- Bump `org.bouncycastle:bcpg-fips` from 2.0.10 to 2.0.11 ([#18668](https://github.com/opensearch-project/OpenSearch/pull/18668))
5252
- Bump `com.password4j:password4j` from 1.8.2 to 1.8.3 ([#18668](https://github.com/opensearch-project/OpenSearch/pull/18668))
5353
- Bump `com.azure:azure-core` from 1.55.3 to 1.55.5 ([#18691](https://github.com/opensearch-project/OpenSearch/pull/18691))
54-
- Bump `com.google.jimfs:jimfs` from 1.3.0 to 1.3.1 ([#18741](https://github.com/opensearch-project/OpenSearch/pull/18741))
54+
- Bump `com.google.jimfs:jimfs` from 1.3.0 to 1.3.1 ([#18741](https://github.com/opensearch-project/OpenSearch/pull/18741)) ([#18743](https://github.com/opensearch-project/OpenSearch/pull/18743))
55+
- Bump `com.azure:azure-storage-common` from 12.29.0 to 12.29.1 ([#18742](https://github.com/opensearch-project/OpenSearch/pull/18742))
56+
- Bump `org.apache.commons:commons-lang3` from 3.17.0 to 3.18.0 ([#18745](https://github.com/opensearch-project/OpenSearch/pull/18745))
5557

5658
### Deprecated
5759

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.25.0"
20+
implementation "org.apache.logging.log4j:log4j-core:2.25.1"
2121
}
2222

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

distribution/tools/plugin-cli/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ dependencies {
4141
api "org.bouncycastle:bc-fips:${versions.bouncycastle_jce}"
4242
api "org.bouncycastle:bcpg-fips:${versions.bouncycastle_pg}"
4343
testImplementation project(":test:framework")
44-
testImplementation 'com.google.jimfs:jimfs:1.3.0'
44+
testImplementation 'com.google.jimfs:jimfs:1.3.1'
4545
testRuntimeOnly("com.google.guava:guava:${versions.guava}") {
4646
transitive = false
4747
}

plugins/repository-azure/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ dependencies {
4747
api 'com.azure:azure-core:1.55.5'
4848
api 'com.azure:azure-json:1.5.0'
4949
api 'com.azure:azure-xml:1.2.0'
50-
api 'com.azure:azure-storage-common:12.29.0'
50+
api 'com.azure:azure-storage-common:12.29.1'
5151
api 'com.azure:azure-core-http-netty:1.15.12'
5252
api "io.netty:netty-codec-dns:${versions.netty}"
5353
api "io.netty:netty-codec-socks:${versions.netty}"

plugins/repository-azure/licenses/azure-storage-common-12.29.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+
d4151d507125bfb255287bfde5d4ab27cd35e478

plugins/repository-hdfs/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ dependencies {
7272
api "org.apache.commons:commons-compress:${versions.commonscompress}"
7373
api 'org.apache.commons:commons-configuration2:2.12.0'
7474
api "commons-io:commons-io:${versions.commonsio}"
75-
api 'org.apache.commons:commons-lang3:3.17.0'
75+
api 'org.apache.commons:commons-lang3:3.18.0'
7676
implementation 'com.google.re2j:re2j:1.8'
7777
api 'javax.servlet:servlet-api:2.5'
7878
api "org.slf4j:slf4j-api:${versions.slf4j}"

plugins/repository-hdfs/licenses/commons-lang3-3.17.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+
fb14946f0e39748a6571de0635acbe44e7885491

server/src/main/java/org/opensearch/common/lucene/Lucene.java

Lines changed: 26 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -357,63 +357,38 @@ public static TopDocsAndMaxScore readTopDocs(StreamInput in) throws IOException
357357
public static FieldDoc readFieldDoc(StreamInput in) throws IOException {
358358
Comparable[] cFields = new Comparable[in.readVInt()];
359359
for (int j = 0; j < cFields.length; j++) {
360-
byte type = in.readByte();
361-
if (type == 0) {
362-
cFields[j] = null;
363-
} else if (type == 1) {
364-
cFields[j] = in.readString();
365-
} else if (type == 2) {
366-
cFields[j] = in.readInt();
367-
} else if (type == 3) {
368-
cFields[j] = in.readLong();
369-
} else if (type == 4) {
370-
cFields[j] = in.readFloat();
371-
} else if (type == 5) {
372-
cFields[j] = in.readDouble();
373-
} else if (type == 6) {
374-
cFields[j] = in.readByte();
375-
} else if (type == 7) {
376-
cFields[j] = in.readShort();
377-
} else if (type == 8) {
378-
cFields[j] = in.readBoolean();
379-
} else if (type == 9) {
380-
cFields[j] = in.readBytesRef();
381-
} else if (type == 10) {
382-
cFields[j] = new BigInteger(in.readString());
383-
} else {
384-
throw new IOException("Can't match type [" + type + "]");
385-
}
360+
cFields[j] = readTypedValue(in);
386361
}
387362
return new FieldDoc(in.readVInt(), in.readFloat(), cFields);
388363
}
389364

390365
public static Comparable readSortValue(StreamInput in) throws IOException {
366+
return readTypedValue(in);
367+
}
368+
369+
/**
370+
* Reads a typed value from the stream based on a type byte prefix.
371+
*
372+
* @param in the input stream
373+
* @return the deserialized Comparable value
374+
* @throws IOException if reading fails or type is unknown
375+
*/
376+
private static Comparable readTypedValue(StreamInput in) throws IOException {
391377
byte type = in.readByte();
392-
if (type == 0) {
393-
return null;
394-
} else if (type == 1) {
395-
return in.readString();
396-
} else if (type == 2) {
397-
return in.readInt();
398-
} else if (type == 3) {
399-
return in.readLong();
400-
} else if (type == 4) {
401-
return in.readFloat();
402-
} else if (type == 5) {
403-
return in.readDouble();
404-
} else if (type == 6) {
405-
return in.readByte();
406-
} else if (type == 7) {
407-
return in.readShort();
408-
} else if (type == 8) {
409-
return in.readBoolean();
410-
} else if (type == 9) {
411-
return in.readBytesRef();
412-
} else if (type == 10) {
413-
return new BigInteger(in.readString());
414-
} else {
415-
throw new IOException("Can't match type [" + type + "]");
416-
}
378+
return switch (type) {
379+
case 0 -> null;
380+
case 1 -> in.readString();
381+
case 2 -> in.readInt();
382+
case 3 -> in.readLong();
383+
case 4 -> in.readFloat();
384+
case 5 -> in.readDouble();
385+
case 6 -> in.readByte();
386+
case 7 -> in.readShort();
387+
case 8 -> in.readBoolean();
388+
case 9 -> in.readBytesRef();
389+
case 10 -> new BigInteger(in.readString());
390+
default -> throw new IOException("Can't match type [" + type + "]");
391+
};
417392
}
418393

419394
public static ScoreDoc readScoreDoc(StreamInput in) throws IOException {

0 commit comments

Comments
 (0)