Skip to content

Commit 62c86e6

Browse files
authored
Merge branch 'main' into c3
Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
2 parents a99cd1b + 9b22c9b commit 62c86e6

File tree

49 files changed

+1569
-470
lines changed

Some content is hidden

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

49 files changed

+1569
-470
lines changed

.github/workflows/assemble.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ${{ matrix.os }}
88
strategy:
99
matrix:
10-
java: [ 21, 23 ]
10+
java: [ 21, 24 ]
1111
os: [ubuntu-latest, windows-latest, macos-13, ubuntu-24.04-arm]
1212
steps:
1313
- uses: actions/checkout@v4

.github/workflows/precommit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ${{ matrix.os }}
88
strategy:
99
matrix:
10-
java: [ 21, 23 ]
10+
java: [ 21, 24 ]
1111
os: [ubuntu-latest, windows-latest, macos-latest, macos-13, ubuntu-24.04-arm]
1212
include:
1313
- java: 21

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
3232
- Pass index settings to system ingest processor factories. ([#18708](https://github.com/opensearch-project/OpenSearch/pull/18708))
3333
- Include named queries from rescore contexts in matched_queries array ([#18697](https://github.com/opensearch-project/OpenSearch/pull/18697))
3434
- Add the configurable limit on rule cardinality ([#18663](https://github.com/opensearch-project/OpenSearch/pull/18663))
35+
- Disable approximation framework when dealing with multiple sorts ([#18763](https://github.com/opensearch-project/OpenSearch/pull/18763))
3536
- [Experimental] Start in "clusterless" mode if a clusterless ClusterPlugin is loaded ([#18479](https://github.com/opensearch-project/OpenSearch/pull/18479))
3637
- [Star-Tree] Add star-tree search related stats ([#18707](https://github.com/opensearch-project/OpenSearch/pull/18707))
3738
- Add support for plugins to profile information ([#18656](https://github.com/opensearch-project/OpenSearch/pull/18656))
3839
- Add support for Combined Fields query ([#18724](https://github.com/opensearch-project/OpenSearch/pull/18724))
40+
- Make GRPC transport extensible to allow plugins to register and expose their own GRPC services ([#18516](https://github.com/opensearch-project/OpenSearch/pull/18516))
3941
- Added approximation support for range queries with now in date field ([#18511](https://github.com/opensearch-project/OpenSearch/pull/18511))
42+
- Upgrade to protobufs 0.6.0 and clean up deprecated TermQueryProtoUtils code ([#18880](https://github.com/opensearch-project/OpenSearch/pull/18880))
4043
- Optimize Composite Aggregations by removing unnecessary object allocations ([#18531](https://github.com/opensearch-project/OpenSearch/pull/18531))
4144

4245
### Changed

plugins/repository-hdfs/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ Set disabledIntegTestTaskNames = []
182182
// Temporarily disable xxxSecure tests for JDK-24 and above, the krb5 does not play well
183183
if (BuildParams.runtimeJavaVersion >= JavaVersion.VERSION_24) {
184184
disabledIntegTestTaskNames += ['integTestSecure', 'integTestSecureHa']
185+
testingConventions.enabled = false
185186
}
186187

187188
for (String integTestTaskName : ['integTestHa', 'integTestSecure', 'integTestSecureHa']) {

plugins/repository-s3/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ Integration tests require several environment variables.
2323
```
2424
AWS_REGION=us-west-2 amazon_s3_access_key=$AWS_ACCESS_KEY_ID amazon_s3_secret_key=$AWS_SECRET_ACCESS_KEY amazon_s3_base_path=path amazon_s3_bucket=dblock-opensearch ./gradlew :plugins:repository-s3:s3ThirdPartyTest
2525
```
26+
Optional environment variables:
27+
28+
- `amazon_s3_path_style_access`: Possible values true or false. Default is false.
29+
- `amazon_s3_endpoint`: s3 custom endpoint url if aws s3 default endpoint is not being used.

plugins/repository-s3/build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ String s3PermanentSecretKey = System.getenv("amazon_s3_secret_key")
161161
String s3PermanentBucket = System.getenv("amazon_s3_bucket")
162162
String s3PermanentBasePath = System.getenv("amazon_s3_base_path")
163163
String s3PermanentRegion = System.getenv("amazon_s3_region")
164+
String s3Endpoint = System.getenv("amazon_s3_endpoint")
165+
String s3PathStyleAccess = System.getenv("amazon_s3_path_style_access")
166+
164167

165168
String s3TemporaryAccessKey = System.getenv("amazon_s3_access_key_temporary")
166169
String s3TemporarySecretKey = System.getenv("amazon_s3_secret_key_temporary")
@@ -419,6 +422,14 @@ TaskProvider s3ThirdPartyTest = tasks.register("s3ThirdPartyTest", Test) {
419422
if (useFixture) {
420423
nonInputProperties.systemProperty 'test.s3.endpoint', "${-> fixtureAddress('minio-fixture', 'minio-fixture', '9000') }"
421424
}
425+
else {
426+
if (s3Endpoint != null) {
427+
systemProperty 'test.s3.endpoint', s3Endpoint
428+
}
429+
}
430+
if (s3PathStyleAccess) {
431+
systemProperty 'test.s3.path_style_access', s3PathStyleAccess
432+
}
422433
}
423434
tasks.named("check").configure { dependsOn(s3ThirdPartyTest) }
424435

plugins/repository-s3/src/internalClusterTest/java/org/opensearch/repositories/s3/S3RepositoryThirdPartyTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ protected void createRepository(String repoName) {
9494
.put("region", System.getProperty("test.s3.region", "us-west-2"))
9595
.put("base_path", System.getProperty("test.s3.base", "testpath"));
9696
final String endpoint = System.getProperty("test.s3.endpoint");
97+
final boolean pathStyleAccess = Boolean.parseBoolean(System.getProperty("test.s3.path_style_access"));
98+
settings.put("path_style_access", pathStyleAccess);
99+
97100
if (endpoint != null) {
98101
settings.put("endpoint", endpoint);
99102
} else {

plugins/transport-grpc/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ dependencies {
3535
implementation "io.grpc:grpc-stub:${versions.grpc}"
3636
implementation "io.grpc:grpc-util:${versions.grpc}"
3737
implementation "io.perfmark:perfmark-api:0.27.0"
38-
implementation "org.opensearch:protobufs:0.3.0"
38+
implementation "org.opensearch:protobufs:0.6.0"
3939
testImplementation project(':test:framework')
4040
}
4141

plugins/transport-grpc/licenses/protobufs-0.3.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+
1675c5085e1376fd1a107b87f7e325944ab5b4dc

0 commit comments

Comments
 (0)