Skip to content

Commit dd59d70

Browse files
Merge branch 'opensearch-project:main' into lockManager
2 parents d630aa1 + 4956db3 commit dd59d70

File tree

10 files changed

+20
-10
lines changed

10 files changed

+20
-10
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4242
- Bump `org.apache.commons:commons-compress` from 1.22 to 1.23.0
4343
- Bump `com.diffplug.spotless` from 6.17.0 to 6.18.0
4444
- Bump `io.opencensus:opencensus-api` from 0.18.0 to 0.31.1 ([#7291](https://github.com/opensearch-project/OpenSearch/pull/7291))
45+
- Bump `com.azure:azure-core` from 1.34.0 to 1.39.0
4546

4647
### Changed
4748
- [CCR] Add getHistoryOperationsFromTranslog method to fetch the history snapshot from translogs ([#3948](https://github.com/opensearch-project/OpenSearch/pull/3948))
@@ -99,6 +100,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
99100
- Bump `commons-io:commons-io` from 2.7 to 2.11.0
100101
- Bump `org.apache.shiro:shiro-core` from 1.9.1 to 1.11.0 ([#7397](https://github.com/opensearch-project/OpenSearch/pull/7397))
101102
- Bump `jetty-server` in hdfs-fixture from 9.4.49.v20220914 to 9.4.51.v20230217 ([#7405](https://github.com/opensearch-project/OpenSearch/pull/7405))
103+
- Bump `com.networknt:json-schema-validator` from 1.0.78 to 1.0.81 (#7460)
104+
- Bump `org.apache.commons:commons-compress` from 1.22 to 1.23.0 (#7462)
102105

103106
### Changed
104107
- Enable `./gradlew build` on MacOS by disabling bcw tests ([#7303](https://github.com/opensearch-project/OpenSearch/pull/7303))
@@ -115,4 +118,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
115118
### Security
116119

117120
[Unreleased 3.0]: https://github.com/opensearch-project/OpenSearch/compare/2.x...HEAD
118-
[Unreleased 2.x]: https://github.com/opensearch-project/OpenSearch/compare/2.7...2.x
121+
[Unreleased 2.x]: https://github.com/opensearch-project/OpenSearch/compare/2.7...2.x

buildSrc/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ dependencies {
118118
api 'com.avast.gradle:gradle-docker-compose-plugin:0.16.12'
119119
api "org.yaml:snakeyaml:${props.getProperty('snakeyaml')}"
120120
api 'org.apache.maven:maven-model:3.9.1'
121-
api 'com.networknt:json-schema-validator:1.0.78'
121+
api 'com.networknt:json-schema-validator:1.0.81'
122122
api "com.fasterxml.jackson.core:jackson-databind:${props.getProperty('jackson_databind')}"
123123

124124
testFixturesApi "junit:junit:${props.getProperty('junit')}"

modules/mapper-extras/src/main/java/org/opensearch/index/mapper/SearchAsYouTypeFieldMapper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ public SpanQuery spanPrefixQuery(String value, SpanMultiTermQueryWrapper.SpanRew
618618
private final PrefixFieldMapper prefixField;
619619
private final ShingleFieldMapper[] shingleFields;
620620

621-
private final Builder builder;
621+
private final IndexAnalyzers indexAnalyzers;
622622

623623
public SearchAsYouTypeFieldMapper(
624624
String simpleName,
@@ -636,7 +636,7 @@ public SearchAsYouTypeFieldMapper(
636636
this.store = builder.store.getValue();
637637
this.indexOptions = builder.indexOptions.getValue();
638638
this.termVectors = builder.termVectors.getValue();
639-
this.builder = builder;
639+
this.indexAnalyzers = builder.analyzers.indexAnalyzers;
640640
}
641641

642642
@Override
@@ -663,7 +663,7 @@ protected String contentType() {
663663

664664
@Override
665665
public ParametrizedFieldMapper.Builder getMergeBuilder() {
666-
return new Builder(simpleName(), builder.analyzers.indexAnalyzers).init(this);
666+
return new Builder(simpleName(), this.indexAnalyzers).init(this);
667667
}
668668

669669
public static String getShingleFieldName(String parentField, int shingleSize) {

plugins/repository-azure/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ opensearchplugin {
4444
}
4545

4646
dependencies {
47-
api 'com.azure:azure-core:1.34.0'
47+
api 'com.azure:azure-core:1.39.0'
48+
api 'com.azure:azure-json:1.0.1'
4849
api 'com.azure:azure-storage-common:12.20.0'
4950
api 'com.azure:azure-core-http-netty:1.12.8'
5051
api "io.netty:netty-codec-dns:${versions.netty}"

plugins/repository-azure/licenses/azure-core-1.34.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+
39765fb88a90174628b31ddf6ff9f8d63462e080
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
abdfdb0c49eebe75ed8532d047dea0c9f13c30ac

plugins/repository-azure/src/main/java/org/opensearch/repositories/azure/AzureStorageService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ private BlobServiceClientBuilder applyLocationMode(final BlobServiceClientBuilde
250250

251251
private static BlobServiceClientBuilder createClientBuilder(AzureStorageSettings settings) throws InvalidKeyException,
252252
URISyntaxException {
253-
return new BlobServiceClientBuilder().connectionString(settings.getConnectString());
253+
return SocketAccess.doPrivilegedException(() -> new BlobServiceClientBuilder().connectionString(settings.getConnectString()));
254254
}
255255

256256
/**

plugins/repository-azure/src/test/java/org/opensearch/repositories/azure/AzureBlobContainerRetriesTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ public class AzureBlobContainerRetriesTests extends OpenSearchTestCase {
119119
public void setUp() throws Exception {
120120
threadPool = new TestThreadPool(getTestClass().getName(), AzureRepositoryPlugin.executorBuilder());
121121
httpServer = HttpServer.create(new InetSocketAddress(InetAddress.getLoopbackAddress(), 0), 0);
122+
httpServer.createContext("/", (exchange) -> {
123+
exchange.sendResponseHeaders(404, 0L);
124+
exchange.close();
125+
});
122126
httpServer.start();
123127
super.setUp();
124128
}

test/fixtures/hdfs-fixture/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ dependencies {
4242
exclude module: 'jettison'
4343
exclude module: 'netty'
4444
exclude module: 'guava'
45+
exclude module: 'protobuf-java'
4546
exclude group: 'org.codehaus.jackson'
4647
}
4748
api "org.codehaus.jettison:jettison:${versions.jettison}"
48-
api "org.apache.commons:commons-compress:1.22"
49+
api "org.apache.commons:commons-compress:1.23.0"
4950
api "commons-codec:commons-codec:${versions.commonscodec}"
5051
api "org.apache.logging.log4j:log4j-core:${versions.log4j}"
5152
api "io.netty:netty-all:${versions.netty}"
@@ -56,7 +57,7 @@ dependencies {
5657
api "com.fasterxml.woodstox:woodstox-core:${versions.woodstox}"
5758
api 'net.minidev:json-smart:2.4.10'
5859
api "org.mockito:mockito-core:${versions.mockito}"
59-
api "com.google.protobuf:protobuf-java:3.22.2"
60+
api "com.google.protobuf:protobuf-java:${versions.protobuf}"
6061
api "org.jetbrains.kotlin:kotlin-stdlib:${versions.kotlin}"
6162
api "org.eclipse.jetty:jetty-server:${versions.jetty}"
6263
api "org.eclipse.jetty.websocket:javax-websocket-server-impl:${versions.jetty}"

0 commit comments

Comments
 (0)