Skip to content

Commit d227d86

Browse files
author
Peter Alfonsi
committed
Merge branch 'main' into must-not-numeric-terms-rewrite
Signed-off-by: Peter Alfonsi <petealft@amazon.com>
2 parents 9dbf259 + cb22cb0 commit d227d86

File tree

453 files changed

+15225
-3953
lines changed

Some content is hidden

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

453 files changed

+15225
-3953
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -445,14 +445,6 @@ updates:
445445
labels:
446446
- "dependabot"
447447
- "dependencies"
448-
- directory: /distribution/tools/upgrade-cli/
449-
open-pull-requests-limit: 1
450-
package-ecosystem: gradle
451-
schedule:
452-
interval: weekly
453-
labels:
454-
- "dependabot"
455-
- "dependencies"
456448
- directory: /doc-tools/
457449
open-pull-requests-limit: 1
458450
package-ecosystem: gradle

.github/workflows/publish-maven-snapshots.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ jobs:
2525
distribution: temurin
2626
java-version: 21
2727

28-
- name: Configure AWS credentials
29-
uses: aws-actions/configure-aws-credentials@v4
28+
- name: Load secret
29+
uses: 1password/load-secrets-action@v2
3030
with:
31-
role-to-assume: ${{ secrets.PUBLISH_SNAPSHOTS_ROLE }}
32-
aws-region: us-east-1
31+
# Export loaded secrets as environment variables
32+
export-env: true
33+
env:
34+
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
35+
SONATYPE_USERNAME: op://opensearch-infra-secrets/maven-central-portal-credentials/username
36+
SONATYPE_PASSWORD: op://opensearch-infra-secrets/maven-central-portal-credentials/password
3337

3438
- name: Publish snapshots to maven
3539
run: |
36-
export SONATYPE_USERNAME=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-username --query SecretString --output text)
37-
export SONATYPE_PASSWORD=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-password --query SecretString --output text)
38-
echo "::add-mask::$SONATYPE_USERNAME"
39-
echo "::add-mask::$SONATYPE_PASSWORD"
4040
./gradlew publishNebulaPublicationToSnapshotsRepository
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Trigger manifest generation workflow
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- buildSrc/version.properties
8+
9+
jobs:
10+
trigger-manifest-workflow:
11+
if: github.repository == 'opensearch-project/OpenSearch'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Trigger manifest-update workflow
15+
run: |
16+
echo "Triggering manifest-update workflow at https://build.ci.opensearch.org/job/manifest-update/"
17+
curl -f -X POST https://build.ci.opensearch.org/job/manifest-update/build --user ${{ secrets.JENKINS_GITHUB_USER}}:${{ secrets.JENKINS_GITHUB_USER_TOKEN}}

.github/workflows/version.yml

Lines changed: 9 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
fi
3030
CURRENT_VERSION_ARRAY=($(echo "$TAG" | tr . '\n'))
3131
BASE=$(IFS=. ; echo "${CURRENT_VERSION_ARRAY[*]:0:2}")
32-
BASE_X=$(IFS=. ; echo "${CURRENT_VERSION_ARRAY[*]:0:1}.x")
32+
MAIN_BRANCH="main"
3333
CURRENT_VERSION=$(IFS=. ; echo "${CURRENT_VERSION_ARRAY[*]:0:3}")
3434
CURRENT_VERSION_UNDERSCORE=$(IFS=_ ; echo "V_${CURRENT_VERSION_ARRAY[*]:0:3}")
3535
CURRENT_VERSION_ARRAY[2]=$((CURRENT_VERSION_ARRAY[2]+1))
@@ -42,7 +42,7 @@ jobs:
4242
fi
4343
echo "TAG=$TAG" >> $GITHUB_ENV
4444
echo "BASE=$BASE" >> $GITHUB_ENV
45-
echo "BASE_X=$BASE_X" >> $GITHUB_ENV
45+
echo "MAIN_BRANCH=$MAIN_BRANCH" >> $GITHUB_ENV
4646
echo "CURRENT_VERSION=$CURRENT_VERSION" >> $GITHUB_ENV
4747
echo "CURRENT_VERSION_UNDERSCORE=$CURRENT_VERSION_UNDERSCORE" >> $GITHUB_ENV
4848
echo "NEXT_VERSION=$NEXT_VERSION" >> $GITHUB_ENV
@@ -77,33 +77,7 @@ jobs:
7777
7878
- uses: actions/checkout@v4
7979
with:
80-
ref: ${{ env.BASE_X }}
81-
82-
- name: Add Patch Version on Major.X branch
83-
uses: peternied/opensearch-core-version-updater@v1
84-
with:
85-
previous-version: ${{ env.CURRENT_VERSION }}
86-
new-version: ${{ env.NEXT_VERSION }}
87-
update-current: false
88-
89-
- name: Create PR for BASE_X
90-
id: base_x_pr
91-
uses: peter-evans/create-pull-request@v7
92-
with:
93-
base: ${{ env.BASE_X }}
94-
branch: 'create-pull-request/patch-${{ env.BASE_X }}'
95-
commit-message: Add bwc version ${{ env.NEXT_VERSION }}
96-
signoff: true
97-
delete-branch: true
98-
labels: |
99-
autocut
100-
title: '[AUTO] [${{ env.BASE_X }}] Add bwc version ${{ env.NEXT_VERSION }}.'
101-
body: |
102-
I've noticed that a new tag ${{ env.TAG }} was pushed, and added a bwc version ${{ env.NEXT_VERSION }}.
103-
104-
- uses: actions/checkout@v4
105-
with:
106-
ref: main
80+
ref: ${{ env.MAIN_BRANCH }}
10781

10882
- name: Add Patch Version on main branch
10983
uses: peternied/opensearch-core-version-updater@v1
@@ -112,18 +86,18 @@ jobs:
11286
new-version: ${{ env.NEXT_VERSION }}
11387
update-current: false
11488

115-
- name: Create PR for main
116-
id: main_pr
89+
- name: Create PR for MAIN_BRANCH
90+
id: main_branch_pr
11791
uses: peter-evans/create-pull-request@v7
11892
with:
119-
base: main
120-
branch: 'create-pull-request/patch-main'
93+
base: ${{ env.MAIN_BRANCH }}
94+
branch: 'create-pull-request/patch-${{ env.MAIN_BRANCH }}'
12195
commit-message: Add bwc version ${{ env.NEXT_VERSION }}
12296
signoff: true
12397
delete-branch: true
12498
labels: |
12599
autocut
126-
title: '[AUTO] [main] Add bwc version ${{ env.NEXT_VERSION }}.'
100+
title: '[AUTO] [${{ env.MAIN_BRANCH }}] Add bwc version ${{ env.NEXT_VERSION }}.'
127101
body: |
128102
I've noticed that a new tag ${{ env.TAG }} was pushed, and added a bwc version ${{ env.NEXT_VERSION }}.
129103
@@ -139,8 +113,7 @@ jobs:
139113
### Exit Criteria
140114
Review and merged the following pull requests
141115
- [ ] ${{ steps.base_pr.outputs.pull-request-url }}
142-
- [ ] ${{ steps.base_x_pr.outputs.pull-request-url }}
143-
- [ ] ${{ steps.main_pr.outputs.pull-request-url }}
116+
- [ ] ${{ steps.main_branch_pr.outputs.pull-request-url }}
144117
145118
### Additional Context
146119
See project wide guidance on branching and versions [[link]](https://github.com/opensearch-project/.github/blob/main/RELEASING.md).

CHANGELOG.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,72 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
## [Unreleased 3.x]
77
### Added
88
- Add support for Warm Indices Write Block on Flood Watermark breach ([#18375](https://github.com/opensearch-project/OpenSearch/pull/18375))
9+
- Add support for custom index name resolver from cluster plugin ([#18593](https://github.com/opensearch-project/OpenSearch/pull/18593))
10+
- Rename WorkloadGroupTestUtil to WorkloadManagementTestUtil ([#18709](https://github.com/opensearch-project/OpenSearch/pull/18709))
11+
- Disallow resize for Warm Index, add Parameterized ITs for close in remote store ([#18686](https://github.com/opensearch-project/OpenSearch/pull/18686))
912
- Ability to run Code Coverage with Gradle and produce the jacoco reports locally ([#18509](https://github.com/opensearch-project/OpenSearch/issues/18509))
1013
- Extend BooleanQuery must_not rewrite to numeric must, term, and terms queries ([#18498](https://github.com/opensearch-project/OpenSearch/pull/18498))
14+
- [Workload Management] Update logging and Javadoc, rename QueryGroup to WorkloadGroup ([#18711](https://github.com/opensearch-project/OpenSearch/issues/18711))
15+
- Add NodeResourceUsageStats to ClusterInfo ([#18480](https://github.com/opensearch-project/OpenSearch/issues/18472))
16+
- Introduce SecureHttpTransportParameters experimental API (to complement SecureTransportParameters counterpart) ([#18572](https://github.com/opensearch-project/OpenSearch/issues/18572))
17+
- Create equivalents of JSM's AccessController in the java agent ([#18346](https://github.com/opensearch-project/OpenSearch/issues/18346))
18+
- [WLM] Add WLM mode validation for workload group CRUD requests ([#18652](https://github.com/opensearch-project/OpenSearch/issues/18652))
19+
- Introduced a new cluster-level API to fetch remote store metadata (segments and translogs) for each shard of an index. ([#18257](https://github.com/opensearch-project/OpenSearch/pull/18257))
20+
- Add last index request timestamp columns to the `_cat/indices` API. ([10766](https://github.com/opensearch-project/OpenSearch/issues/10766))
21+
- Introduce a new pull-based ingestion plugin for file-based indexing (for local testing) ([#18591](https://github.com/opensearch-project/OpenSearch/pull/18591))
22+
- Add support for search pipeline in search and msearch template ([#18564](https://github.com/opensearch-project/OpenSearch/pull/18564))
23+
- [Workload Management] Modify logging message in WorkloadGroupService ([#18712](https://github.com/opensearch-project/OpenSearch/pull/18712))
24+
- Add BooleanQuery rewrite moving constant-scoring must clauses to filter clauses ([#18510](https://github.com/opensearch-project/OpenSearch/issues/18510))
25+
- Add functionality for plugins to inject QueryCollectorContext during QueryPhase ([#18637](https://github.com/opensearch-project/OpenSearch/pull/18637))
26+
- Add support for non-timing info in profiler ([#18460](https://github.com/opensearch-project/OpenSearch/issues/18460))
27+
- Extend Approximation Framework to other numeric types ([#18530](https://github.com/opensearch-project/OpenSearch/issues/18530))
28+
- Add Semantic Version field type mapper and extensive unit tests([#18454](https://github.com/opensearch-project/OpenSearch/pull/18454))
29+
- Pass index settings to system ingest processor factories. ([#18708](https://github.com/opensearch-project/OpenSearch/pull/18708))
30+
- Include named queries from rescore contexts in matched_queries array ([#18697](https://github.com/opensearch-project/OpenSearch/pull/18697))
31+
- Add the configurable limit on rule cardinality ([#18663](https://github.com/opensearch-project/OpenSearch/pull/18663))
32+
- [Experimental] Start in "clusterless" mode if a clusterless ClusterPlugin is loaded ([#18479](https://github.com/opensearch-project/OpenSearch/pull/18479))
1133

1234
### Changed
35+
- Update Subject interface to use CheckedRunnable ([#18570](https://github.com/opensearch-project/OpenSearch/issues/18570))
36+
- Update SecureAuxTransportSettingsProvider to distinguish between aux transport types ([#18616](https://github.com/opensearch-project/OpenSearch/pull/18616))
37+
- Make node duress values cacheable ([#18649](https://github.com/opensearch-project/OpenSearch/pull/18649))
38+
- Making multi rate limiters in repository dynamic [#18069](https://github.com/opensearch-project/OpenSearch/pull/18069)
1339

1440
### Dependencies
1541
- Bump `stefanzweifel/git-auto-commit-action` from 5 to 6 ([#18524](https://github.com/opensearch-project/OpenSearch/pull/18524))
42+
- Bump Apache Lucene to 10.2.2 ([#18573](https://github.com/opensearch-project/OpenSearch/pull/18573))
43+
- 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))
44+
- Bump `com.google.code.gson:gson` from 2.13.0 to 2.13.1 ([#18585](https://github.com/opensearch-project/OpenSearch/pull/18585))
45+
- Bump `com.azure:azure-core-http-netty` from 1.15.11 to 1.15.12 ([#18586](https://github.com/opensearch-project/OpenSearch/pull/18586))
46+
- 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))
47+
- Bump `com.netflix.nebula.ospackage-base` from 11.11.2 to 12.0.0 ([#18646](https://github.com/opensearch-project/OpenSearch/pull/18646))
48+
- Bump `com.azure:azure-storage-blob` from 12.30.0 to 12.30.1 ([#18644](https://github.com/opensearch-project/OpenSearch/pull/18644))
49+
- Bump `com.google.guava:failureaccess` from 1.0.1 to 1.0.2 ([#18672](https://github.com/opensearch-project/OpenSearch/pull/18672))
50+
- Bump `io.perfmark:perfmark-api` from 0.26.0 to 0.27.0 ([#18672](https://github.com/opensearch-project/OpenSearch/pull/18672))
51+
- Bump `org.bouncycastle:bctls-fips` from 2.0.19 to 2.0.20 ([#18668](https://github.com/opensearch-project/OpenSearch/pull/18668))
52+
- Bump `org.bouncycastle:bcpkix-fips` from 2.0.7 to 2.0.8 ([#18668](https://github.com/opensearch-project/OpenSearch/pull/18668))
53+
- Bump `org.bouncycastle:bcpg-fips` from 2.0.10 to 2.0.11 ([#18668](https://github.com/opensearch-project/OpenSearch/pull/18668))
54+
- Bump `com.password4j:password4j` from 1.8.2 to 1.8.3 ([#18668](https://github.com/opensearch-project/OpenSearch/pull/18668))
55+
- Bump `com.azure:azure-core` from 1.55.3 to 1.55.5 ([#18691](https://github.com/opensearch-project/OpenSearch/pull/18691))
56+
- Bump `com.google.jimfs:jimfs` from 1.3.0 to 1.3.1 ([#18743](https://github.com/opensearch-project/OpenSearch/pull/18743))
57+
- Bump `com.azure:azure-storage-common` from 12.29.0 to 12.29.1 ([#18742](https://github.com/opensearch-project/OpenSearch/pull/18742))
58+
- Bump `org.apache.commons:commons-lang3` from 3.17.0 to 3.18.0 ([#18745](https://github.com/opensearch-project/OpenSearch/pull/18745))
1659

1760
### Deprecated
1861

1962
### Removed
2063

2164
### Fixed
2265
- Add task cancellation checks in aggregators ([#18426](https://github.com/opensearch-project/OpenSearch/pull/18426))
66+
- Fix concurrent timings in profiler ([#18540](https://github.com/opensearch-project/OpenSearch/pull/18540))
67+
- Fix regex query from query string query to work with field alias ([#18215](https://github.com/opensearch-project/OpenSearch/issues/18215))
68+
- [Autotagging] Fix delete rule event consumption in InMemoryRuleProcessingService ([#18628](https://github.com/opensearch-project/OpenSearch/pull/18628))
69+
- Cannot communicate with HTTP/2 when reactor-netty is enabled ([#18599](https://github.com/opensearch-project/OpenSearch/pull/18599))
70+
- Fix the visit of sub queries for HasParentQuery and HasChildQuery ([#18621](https://github.com/opensearch-project/OpenSearch/pull/18621))
71+
- Fix the backward compatibility regression with COMPLEMENT for Regexp queries introduced in OpenSearch 3.0 ([#18640](https://github.com/opensearch-project/OpenSearch/pull/18640))
72+
- Fix Replication lag computation ([#18602](https://github.com/opensearch-project/OpenSearch/pull/18602))
73+
- Fix max_score is null when sorting on score firstly ([#18715](https://github.com/opensearch-project/OpenSearch/pull/18715))
74+
- Fixed Staggered merge - load average replace with AverageTrackers, some Default thresholds modified ([#18666](https://github.com/opensearch-project/OpenSearch/pull/18666))
2375

2476
### Security
2577

DEVELOPER_GUIDE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ It's typically easier to wait until the console stops scrolling, and then run `c
189189

190190
```bash
191191
curl localhost:9200
192-
192+
```
193+
The expected reponse should be
194+
```
193195
{
194196
"name" : "runTask-0",
195197
"cluster_name" : "runTask",

MAINTAINERS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ This document contains a list of maintainers in this repo. See [opensearch-proje
1111
| Andriy Redko | [reta](https://github.com/reta) | Independent |
1212
| Ankit Jain | [jainankitk](https://github.com/jainankitk) | Amazon |
1313
| Ashish Singh | [ashking94](https://github.com/ashking94) | Amazon |
14+
| Bharathwaj G | [bharath-techie](https://github.com/bharath-techie) | Amazon |
1415
| Bukhtawar Khan | [Bukhtawar](https://github.com/Bukhtawar) | Amazon |
1516
| Charlotte Henkle | [CEHENKLE](https://github.com/CEHENKLE) | Amazon |
1617
| Craig Perkins | [cwperks](https://github.com/cwperks) | Amazon |
@@ -27,6 +28,7 @@ This document contains a list of maintainers in this repo. See [opensearch-proje
2728
| Owais Kazi | [owaiskazi19](https://github.com/owaiskazi19) | Amazon |
2829
| Pan Guixin | [bugmakerrrrrr](https://github.com/bugmakerrrrrr) | ByteDance |
2930
| Peter Nied | [peternied](https://github.com/peternied) | Amazon |
31+
| Prudhvi Godithi | [prudhvigodithi](https://github.com/prudhvigodithi) | Amazon |
3032
| Rishabh Maurya | [rishabhmaurya](https://github.com/rishabhmaurya) | Amazon |
3133
| Rishikesh Pasham | [Rishikesh1159](https://github.com/Rishikesh1159) | Amazon |
3234
| Sachin Kale | [sachinpkale](https://github.com/sachinpkale) | Amazon |

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ subprojects {
118118
}
119119
maven {
120120
name = 'Snapshots'
121-
url = 'https://aws.oss.sonatype.org/content/repositories/snapshots'
121+
url = 'https://central.sonatype.com/repository/maven-snapshots/'
122122
credentials {
123123
username = "$System.env.SONATYPE_USERNAME"
124124
password = "$System.env.SONATYPE_PASSWORD"

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

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

client/rest-high-level/src/test/java/org/opensearch/client/RequestConvertersTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,6 +1367,7 @@ public void testSearchTemplate() throws Exception {
13671367
scriptParams.put("field", "name");
13681368
scriptParams.put("value", "soren");
13691369
searchTemplateRequest.setScriptParams(scriptParams);
1370+
searchTemplateRequest.setSearchPipeline("pipeline");
13701371

13711372
// Verify that the resulting REST request looks as expected.
13721373
Request request = RequestConverters.searchTemplate(searchTemplateRequest);
@@ -1391,6 +1392,7 @@ public void testRenderSearchTemplate() throws Exception {
13911392
searchTemplateRequest.setScript("template1");
13921393
searchTemplateRequest.setScriptType(ScriptType.STORED);
13931394
searchTemplateRequest.setProfile(randomBoolean());
1395+
searchTemplateRequest.setSearchPipeline("pipeline");
13941396

13951397
Map<String, Object> scriptParams = new HashMap<>();
13961398
scriptParams.put("field", "name");
@@ -1431,6 +1433,7 @@ public void testMultiSearchTemplate() throws Exception {
14311433
searchTemplateRequest.setScript("{\"query\": { \"match\" : { \"{{field}}\" : \"{{value}}\" }}}");
14321434
searchTemplateRequest.setScriptType(ScriptType.INLINE);
14331435
searchTemplateRequest.setProfile(randomBoolean());
1436+
searchTemplateRequest.setSearchPipeline("pipeline");
14341437

14351438
Map<String, Object> scriptParams = new HashMap<>();
14361439
scriptParams.put("field", "name");

0 commit comments

Comments
 (0)