Skip to content

Commit a2bcea0

Browse files
committed
Rebase
Signed-off-by: Varun Jain <varunudr@amazon.com>
2 parents 1784819 + 7c8f01b commit a2bcea0

File tree

299 files changed

+11002
-2041
lines changed

Some content is hidden

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

299 files changed

+11002
-2041
lines changed

.ci/bwcVersions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,4 @@ BWC_VERSION:
4747
- "2.19.2"
4848
- "2.19.3"
4949
- "3.0.0"
50+
- "3.1.0"

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@
1111
*.crt binary
1212
*.p12 binary
1313
*.txt text=auto
14+
CHANGELOG.md merge=union

.github/benchmark-configs.json

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"baseline_cluster_config": "x64-r5.xlarge-1-shard-0-replica-snapshot-baseline"
5353
},
5454
"id_4": {
55-
"description": "Search only test-procedure for big5, uses snapshot to restore the data for OS-3.0.0",
55+
"description": "Search only test-procedure for big5, uses snapshot to restore the data for OS-3.x",
5656
"supported_major_versions": ["3"],
5757
"cluster-benchmark-configs": {
5858
"SINGLE_NODE_CLUSTER": "true",
@@ -206,7 +206,7 @@
206206
"baseline_cluster_config": "x64-r5.xlarge-1-shard-0-replica-snapshot-baseline"
207207
},
208208
"id_13": {
209-
"description": "Search only test-procedure for HTTP_LOGS, uses snapshot to restore the data for OS-3.0.0",
209+
"description": "Search only test-procedure for HTTP_LOGS, uses snapshot to restore the data for OS-3.x",
210210
"supported_major_versions": ["3"],
211211
"cluster-benchmark-configs": {
212212
"SINGLE_NODE_CLUSTER": "true",
@@ -221,5 +221,22 @@
221221
"data_instance_config": "4vCPU, 32G Mem, 16G Heap"
222222
},
223223
"baseline_cluster_config": "x64-r5.xlarge-1-shard-0-replica-snapshot-baseline"
224+
},
225+
"id_14": {
226+
"description": "Search only test-procedure for NYC_TAXIS, uses snapshot to restore the data for OS-3.x",
227+
"supported_major_versions": ["3"],
228+
"cluster-benchmark-configs": {
229+
"SINGLE_NODE_CLUSTER": "true",
230+
"MIN_DISTRIBUTION": "true",
231+
"TEST_WORKLOAD": "nyc_taxis",
232+
"WORKLOAD_PARAMS": "{\"snapshot_repo_name\":\"benchmark-workloads-repo-3x\",\"snapshot_bucket_name\":\"benchmark-workload-snapshots\",\"snapshot_region\":\"us-east-1\",\"snapshot_base_path\":\"10.2.1\",\"snapshot_name\":\"nyc_taxis_1_shard\"}",
233+
"CAPTURE_NODE_STAT": "true",
234+
"TEST_PROCEDURE": "restore-from-snapshot"
235+
},
236+
"cluster_configuration": {
237+
"size": "Single-Node",
238+
"data_instance_config": "4vCPU, 32G Mem, 16G Heap"
239+
},
240+
"baseline_cluster_config": "x64-r5.xlarge-1-shard-0-replica-snapshot-baseline"
224241
}
225242
}

.github/workflows/dependabot_pr.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
uses: actions/checkout@v4
2222
with:
2323
token: ${{ steps.github_app_token.outputs.token }}
24+
ref: ${{ github.head_ref }}
2425

2526
# See please https://docs.gradle.org/8.10/userguide/upgrading_version_8.html#minimum_daemon_jvm_version
2627
- name: Set up JDK 21
@@ -34,7 +35,7 @@ jobs:
3435
./gradlew updateSHAs
3536
3637
- name: Commit the changes
37-
uses: stefanzweifel/git-auto-commit-action@v5
38+
uses: stefanzweifel/git-auto-commit-action@v6
3839
with:
3940
commit_message: Updating SHAs
4041
branch: ${{ github.head_ref }}
@@ -47,7 +48,7 @@ jobs:
4748
./gradlew spotlessApply
4849
4950
- name: Commit the changes
50-
uses: stefanzweifel/git-auto-commit-action@v5
51+
uses: stefanzweifel/git-auto-commit-action@v6
5152
with:
5253
commit_message: Spotless formatting
5354
branch: ${{ github.head_ref }}
@@ -61,7 +62,7 @@ jobs:
6162
version: 'Unreleased 3.x'
6263

6364
- name: Commit the changes
64-
uses: stefanzweifel/git-auto-commit-action@v5
65+
uses: stefanzweifel/git-auto-commit-action@v6
6566
with:
6667
commit_message: "Update changelog"
6768
branch: ${{ github.head_ref }}

.github/workflows/detect-breaking-change.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: "Detect Breaking Changes"
22
on:
3-
pull_request:
4-
branches-ignore:
5-
- main # This branch represents a to-be-released version of OpenSearch where breaking changes are allowed
6-
- '3.0' # We must establish a baseline 3.0 release version before adding enforcement
3+
pull_request
74

85
jobs:
96
detect-breaking-change:
@@ -18,7 +15,7 @@ jobs:
1815
with:
1916
cache-disabled: true
2017
arguments: japicmp
21-
gradle-version: 8.11
18+
gradle-version: 8.14
2219
build-root-directory: server
2320
- if: failure()
2421
run: cat server/build/reports/java-compatibility/report.txt

ADMINS.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
## Admins
22

3-
| Admin | GitHub ID | Affiliation |
4-
| --------------- | --------------------------------------- | ----------- |
5-
| Henri Yandell | [hyandell](https://github.com/hyandell) | Amazon |
6-
7-
[This document](https://github.com/opensearch-project/.github/blob/main/ADMINS.md) explains what admins do in this repo. and how they should be doing it. If you're interested in becoming a maintainer, see [MAINTAINERS](MAINTAINERS.md). If you're interested in contributing, see [CONTRIBUTING](CONTRIBUTING.md).
3+
Kindly refer to [ADMINS.md](https://github.com/opensearch-project/.github/blob/main/ADMINS.md) for opensearch-project administrators, their responsibilities in this repository, and their operational procedures. If you're interested in becoming a maintainer, see [MAINTAINERS](MAINTAINERS.md). If you're interested in contributing, see [CONTRIBUTING](CONTRIBUTING.md).

CHANGELOG.md

Lines changed: 5 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -5,87 +5,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55

66
## [Unreleased 3.x]
77
### Added
8-
- Add support for linux riscv64 platform ([#18156](https://github.com/opensearch-project/OpenSearch/pull/18156))
9-
- [Rule based auto-tagging] Add get rule API ([#17336](https://github.com/opensearch-project/OpenSearch/pull/17336))
10-
- [Rule based auto-tagging] Add Delete Rule API ([#18184](https://github.com/opensearch-project/OpenSearch/pull/18184))
11-
- Add paginated wlm/stats API ([#17638](https://github.com/opensearch-project/OpenSearch/pull/17638))
12-
- [Rule based auto-tagging] Add Create rule API ([#17792](https://github.com/opensearch-project/OpenSearch/pull/17792))
13-
- Implement parallel shard refresh behind cluster settings ([#17782](https://github.com/opensearch-project/OpenSearch/pull/17782))
14-
- Bump OpenSearch Core main branch to 3.0.0 ([#18039](https://github.com/opensearch-project/OpenSearch/pull/18039))
15-
- [Rule based Auto-tagging] Add wlm `ActionFilter` ([#17791](https://github.com/opensearch-project/OpenSearch/pull/17791))
16-
- Update API of Message in index to add the timestamp for lag calculation in ingestion polling ([#17977](https://github.com/opensearch-project/OpenSearch/pull/17977/))
17-
- Add Warm Disk Threshold Allocation Decider for Warm shards ([#18082](https://github.com/opensearch-project/OpenSearch/pull/18082))
18-
- Add composite directory factory ([#17988](https://github.com/opensearch-project/OpenSearch/pull/17988))
19-
- Add pull-based ingestion error metrics and make internal queue size configurable ([#18088](https://github.com/opensearch-project/OpenSearch/pull/18088))
20-
- Adding support for derive source feature and implementing it for various type of field mappers ([#17759](https://github.com/opensearch-project/OpenSearch/pull/17759))
21-
- [Security Manager Replacement] Enhance Java Agent to intercept newByteChannel ([#17989](https://github.com/opensearch-project/OpenSearch/pull/17989))
22-
- Enabled Async Shard Batch Fetch by default ([#18139](https://github.com/opensearch-project/OpenSearch/pull/18139))
23-
- Allow to get the search request from the QueryCoordinatorContext ([#17818](https://github.com/opensearch-project/OpenSearch/pull/17818))
24-
- Reject close index requests, while remote store migration is in progress.([#18327](https://github.com/opensearch-project/OpenSearch/pull/18327))
25-
- Improve sort-query performance by retaining the default `totalHitsThreshold` for approximated `match_all` queries ([#18189](https://github.com/opensearch-project/OpenSearch/pull/18189))
26-
- Enable testing for ExtensiblePlugins using classpath plugins ([#16908](https://github.com/opensearch-project/OpenSearch/pull/16908))
27-
- Introduce system generated ingest pipeline ([#17817](https://github.com/opensearch-project/OpenSearch/pull/17817)))
28-
- Apply cluster state metadata and routing table diff when building cluster state from remote([#18256](https://github.com/opensearch-project/OpenSearch/pull/18256))
29-
- Support create mode in pull-based ingestion and add retries for transient failures ([#18250](https://github.com/opensearch-project/OpenSearch/pull/18250)))
30-
- Decouple the init of Crypto Plugin and KeyProvider in CryptoRegistry ([18270](https://github.com/opensearch-project/OpenSearch/pull18270)))
31-
- Support cluster write block in pull-based ingestion ([#18280](https://github.com/opensearch-project/OpenSearch/pull/18280)))
32-
- Use QueryCoordinatorContext for the rewrite in validate API. ([#18272](https://github.com/opensearch-project/OpenSearch/pull/18272))
33-
- Upgrade crypto kms plugin dependencies for AWS SDK v2.x. ([#18268](https://github.com/opensearch-project/OpenSearch/pull/18268))
34-
- Add support for `matched_fields` with the unified highlighter ([#18164](https://github.com/opensearch-project/OpenSearch/issues/18164))
35-
- Add BooleanQuery rewrite for must_not RangeQuery clauses ([#17655](https://github.com/opensearch-project/OpenSearch/pull/17655))
36-
- [repository-s3] Add support for SSE-KMS and S3 bucket owner verification ([#18312](https://github.com/opensearch-project/OpenSearch/pull/18312))
37-
- Optimize gRPC perf by passing by reference ([#18303](https://github.com/opensearch-project/OpenSearch/pull/18303))
38-
- Added File Cache Stats - Involves Block level as well as full file level stats ([#17538](https://github.com/opensearch-project/OpenSearch/issues/17479))
39-
- Added time_in_execution attribute to /_cluster/pending_tasks response ([#17780](https://github.com/opensearch-project/OpenSearch/pull/17780))
40-
- Added File Cache Pinning ([#17617](https://github.com/opensearch-project/OpenSearch/issues/13648))
41-
- Support consumer reset in Resume API for pull-based ingestion. This PR includes a breaking change for the experimental pull-based ingestion feature. ([#18332](https://github.com/opensearch-project/OpenSearch/pull/18332))
42-
- Add FIPS build tooling ([#4254](https://github.com/opensearch-project/security/issues/4254))
8+
- Add support for Warm Indices Write Block on Flood Watermark breach ([#18375](https://github.com/opensearch-project/OpenSearch/pull/18375))
9+
- Ability to run Code Coverage with Gradle and produce the jacoco reports locally ([#18509](https://github.com/opensearch-project/OpenSearch/issues/18509))
4310

4411
### Changed
45-
- Create generic DocRequest to better categorize ActionRequests ([#18269](https://github.com/opensearch-project/OpenSearch/pull/18269)))
46-
- Change implementation for `percentiles` aggregation for latency improvement ([#18124](https://github.com/opensearch-project/OpenSearch/pull/18124))
47-
- Update FipsMode check to catch NoSuchMethodError ([#18427](https://github.com/opensearch-project/OpenSearch/pull/18427))
48-
4912

5013
### Dependencies
51-
- Update Apache Lucene from 10.1.0 to 10.2.1 ([#17961](https://github.com/opensearch-project/OpenSearch/pull/17961))
52-
- Bump `com.google.code.gson:gson` from 2.12.1 to 2.13.1 ([#17923](https://github.com/opensearch-project/OpenSearch/pull/17923), [#18266](https://github.com/opensearch-project/OpenSearch/pull/18266))
53-
- Bump `com.github.spotbugs:spotbugs-annotations` from 4.9.0 to 4.9.3 ([#17922](https://github.com/opensearch-project/OpenSearch/pull/17922))
54-
- Bump `com.microsoft.azure:msal4j` from 1.18.0 to 1.20.0 ([#17925](https://github.com/opensearch-project/OpenSearch/pull/17925))
55-
- Update Apache HttpClient5 and HttpCore5 (CVE-2025-27820) ([#18152](https://github.com/opensearch-project/OpenSearch/pull/18152))
56-
- Bump `org.apache.commons:commons-collections4` from 4.4 to 4.5.0 ([#18101](https://github.com/opensearch-project/OpenSearch/pull/18101))
57-
- Bump `netty` from 4.1.118.Final to 4.1.121.Final ([#18192](https://github.com/opensearch-project/OpenSearch/pull/18192))
58-
- Bump `org.apache.commons:commons-configuration2` from 2.11.0 to 2.12.0 ([#18103](https://github.com/opensearch-project/OpenSearch/pull/18103), [#18262](https://github.com/opensearch-project/OpenSearch/pull/18262))
59-
- Bump `com.nimbusds:nimbus-jose-jwt` from 10.0.2 to 10.3 ([#18104](https://github.com/opensearch-project/OpenSearch/pull/18104), [#18336](https://github.com/opensearch-project/OpenSearch/pull/18336))
60-
- Bump `org.apache.commons:commons-text` from 1.13.0 to 1.13.1 ([#18102](https://github.com/opensearch-project/OpenSearch/pull/18102))
61-
- Bump `reactor-netty` from 1.2.4 to 1.2.5 ([#18243](https://github.com/opensearch-project/OpenSearch/pull/18243))
62-
- Bump `reactor` from 3.5.20 to 3.7.5 ([#18243](https://github.com/opensearch-project/OpenSearch/pull/18243))
63-
- Bump `com.azure:azure-core-http-netty` from 1.15.7 to 1.15.11 ([#18265](https://github.com/opensearch-project/OpenSearch/pull/18265))
64-
- Bump `lycheeverse/lychee-action` from 2.4.0 to 2.4.1 ([#18264](https://github.com/opensearch-project/OpenSearch/pull/18264))
65-
- Bump `com.maxmind.geoip2:geoip2` from 4.2.1 to 4.3.1 ([#18263](https://github.com/opensearch-project/OpenSearch/pull/18263), [#18413](https://github.com/opensearch-project/OpenSearch/pull/18413))
66-
- Bump `com.azure:azure-json` from 1.3.0 to 1.5.0 ([#18335](https://github.com/opensearch-project/OpenSearch/pull/18335))
67-
- Bump `org.jline:jline` from 3.29.0 to 3.30.3 ([#18368](https://github.com/opensearch-project/OpenSearch/pull/18368))
68-
- Bump `com.nimbusds:oauth2-oidc-sdk` from 11.23.1 to 11.25 ([#18369](https://github.com/opensearch-project/OpenSearch/pull/18369))
69-
- Bump `gradle/actions` from 3 to 4 ([#18371](https://github.com/opensearch-project/OpenSearch/pull/18371))
14+
- Bump `stefanzweifel/git-auto-commit-action` from 5 to 6 ([#18524](https://github.com/opensearch-project/OpenSearch/pull/18524))
7015

7116
### Deprecated
7217

7318
### Removed
74-
- [repository-s3] Removed existing ineffective `server_side_encryption` setting ([#18312](https://github.com/opensearch-project/OpenSearch/pull/18312))
7519

7620
### Fixed
77-
- Fix simultaneously creating a snapshot and updating the repository can potentially trigger an infinite loop ([#17532](https://github.com/opensearch-project/OpenSearch/pull/17532))
78-
- Remove package org.opensearch.transport.grpc and replace with org.opensearch.plugin.transport.grpc ([#18031](https://github.com/opensearch-project/OpenSearch/pull/18031))
79-
- Fix the native plugin installation error cause by the pgp public key change ([#18147](https://github.com/opensearch-project/OpenSearch/pull/18147))
80-
- Fix object field exists query ([#17843](https://github.com/opensearch-project/OpenSearch/pull/17843))
81-
- Use Bad Request status for InputCoercionException ([#18161](https://github.com/opensearch-project/OpenSearch/pull/18161))
82-
- Null check field names in QueryStringQueryBuilder ([#18194](https://github.com/opensearch-project/OpenSearch/pull/18194))
83-
- Avoid NPE if on SnapshotInfo if 'shallow' boolean not present ([#18187](https://github.com/opensearch-project/OpenSearch/issues/18187))
84-
- Fix 'system call filter not installed' caused when network.host: 0.0.0.0 ([#18309](https://github.com/opensearch-project/OpenSearch/pull/18309))
85-
- Fix MatrixStatsAggregator reuse when mode parameter changes ([#18242](https://github.com/opensearch-project/OpenSearch/issues/18242))
86-
- Replace the deprecated construction method of TopScoreDocCollectorManager with the new method ([#18395](https://github.com/opensearch-project/OpenSearch/pull/18395))
87-
- Fixed Approximate Framework regression with Lucene 10.2.1 by updating `intersectRight` BKD walk and `IntRef` visit method ([#18358](https://github.com/opensearch-project/OpenSearch/issues/18358
21+
- Add task cancellation checks in aggregators ([#18426](https://github.com/opensearch-project/OpenSearch/pull/18426))
8822

8923
### Security
9024

91-
[Unreleased 3.x]: https://github.com/opensearch-project/OpenSearch/compare/3.0...main
25+
[Unreleased 3.x]: https://github.com/opensearch-project/OpenSearch/compare/3.1...main

DEVELOPER_GUIDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Fork [opensearch-project/OpenSearch](https://github.com/opensearch-project/OpenS
7676

7777
#### JDK
7878

79-
OpenSearch recommends building with the [Temurin/Adoptium](https://adoptium.net/temurin/releases/) distribution. JDK 11 is the minimum supported, and JDK-23 is the newest supported. You must have a supported JDK installed with the environment variable `JAVA_HOME` referencing the path to Java home for your JDK installation, e.g. `JAVA_HOME=/usr/lib/jvm/jdk-21`.
79+
OpenSearch recommends building with the [Temurin/Adoptium](https://adoptium.net/temurin/releases/) distribution. JDK 11 is the minimum supported, and JDK-24 is the newest supported. You must have a supported JDK installed with the environment variable `JAVA_HOME` referencing the path to Java home for your JDK installation, e.g. `JAVA_HOME=/usr/lib/jvm/jdk-21`.
8080

8181
Download Java 11 from [here](https://adoptium.net/releases.html?variant=openjdk11).
8282

@@ -87,11 +87,11 @@ In addition, certain backward compatibility tests check out and compile the prev
8787
./gradlew check -Dorg.gradle.warning.mode=none
8888
```
8989

90-
By default, the test tasks use bundled JDK runtime, configured in version catalog [gradle/libs.versions.toml](gradle/libs.versions.toml), and set to JDK 23 (non-LTS).
90+
By default, the test tasks use bundled JDK runtime, configured in version catalog [gradle/libs.versions.toml](gradle/libs.versions.toml), and set to JDK 24 (non-LTS).
9191

9292
```
9393
bundled_jdk_vendor = adoptium
94-
bundled_jdk = 23.0.1+11
94+
bundled_jdk = 24.0.1+9
9595
```
9696

9797
#### Custom Runtime JDK

TESTING.md

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -518,25 +518,48 @@ Example:
518518

519519
# Test coverage analysis
520520

521-
The code coverage report can be generated through Gradle with [JaCoCo plugin](https://docs.gradle.org/current/userguide/jacoco_plugin.html).
521+
The code coverage report can be generated through Gradle with [JaCoCo plugin](https://docs.gradle.org/current/userguide/jacoco_plugin.html). Following are some of the ways to generate the code coverage reports locally.
522522

523523
For unit test:
524524

525-
./gradlew codeCoverageReportForUnitTest
525+
./gradlew test
526+
./gradlew jacocoTestReport
527+
528+
For unit test inside a specific module:
529+
530+
./gradlew :server:test
531+
./gradlew :server:jacocoTestReport
532+
533+
For specific unit test inside a specific module:
534+
535+
./gradlew :server:test --tests "org.opensearch.search.approximate.ApproximatePointRangeQueryTests.testNycTaxiDataDistribution"
536+
./gradlew :server:jacocoTestReport -Dtests.coverage.report.html=true
526537

527538
For integration test:
528539

529-
./gradlew codeCoverageReportForIntegrationTest
540+
./gradlew internalClusterTest
541+
./gradlew jacocoTestReport
542+
543+
For integration test inside a specific module:
544+
545+
./gradlew :server:internalClusterTest
546+
./gradlew :server:jacocoTestReport
547+
548+
For specific integration test inside a specific module:
549+
550+
./gradlew :server:internalClusterTest --tests "org.opensearch.action.admin.ClientTimeoutIT.testNodesInfoTimeout"
551+
./gradlew :server:jacocoTestReport
530552

531-
For the combined tests (unit and integration):
553+
For modules with javaRestTest:
532554

533-
./gradlew codeCoverageReport
555+
./gradlew :qa:die-with-dignity:javaRestTest
556+
./gradlew :qa:die-with-dignity:jacocoTestReport -Dtests.coverage.report.html=true
534557

535558
To generate coverage report for the combined tests after `check` task:
536559

537560
./gradlew check -Dtests.coverage=true
538561

539-
The code coverage report will be generated in `build/codeCoverageReport`, `build/codeCoverageReportForUnitTest` or `build/codeCoverageReportForIntegrationTest` correspondingly.
562+
The code coverage report will be generated in `$buildDir/build/reports/jacoco/test/html/`.
540563

541564
The report will be in XML format only by default, but you can add the following parameter for HTML and CSV format.
542565

@@ -546,7 +569,7 @@ The report will be in XML format only by default, but you can add the following
546569

547570
For example, to generate code coverage report in HTML format and not in XML format:
548571

549-
./gradlew codeCoverageReport -Dtests.coverage.report.html=true -Dtests.coverage.report.xml=false
572+
./gradlew internalClusterTest -Dtests.coverage.report.html=true -Dtests.coverage.report.xml=false
550573

551574
Apart from using Gradle, it is also possible to gain insight in code coverage using IntelliJ’s built-in coverage analysis tool that can measure coverage upon executing specific tests. Eclipse may also be able to do the same using the EclEmma plugin.
552575

buildSrc/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Please use ../gradle/libs.versions.toml for dependency management
2-
opensearch = 3.1.0
2+
opensearch = 3.2.0

0 commit comments

Comments
 (0)