Skip to content

Commit 50b0bc0

Browse files
committed
Merge branch 'main' into scheduled-job-identity-manager
2 parents 19ed9ba + 1d22740 commit 50b0bc0

File tree

264 files changed

+9544
-1003
lines changed

Some content is hidden

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

264 files changed

+9544
-1003
lines changed

.github/workflows/gradle-check.yml

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -22,52 +22,52 @@ jobs:
2222
timeout-minutes: 130
2323
steps:
2424
- name: Checkout OpenSearch repo
25-
uses: actions/checkout@v2
25+
uses: actions/checkout@v3
2626
with:
2727
ref: ${{ github.event.pull_request.head.sha }}
2828

2929
- name: Setup environment variables (PR)
3030
if: github.event_name == 'pull_request_target'
3131
run: |
32-
echo "pr_from_sha=$(jq --raw-output .pull_request.head.sha $GITHUB_EVENT_PATH)" >> $GITHUB_ENV
33-
echo "pr_from_clone_url=$(jq --raw-output .pull_request.head.repo.clone_url $GITHUB_EVENT_PATH)" >> $GITHUB_ENV
34-
echo "pr_to_clone_url=$(jq --raw-output .pull_request.base.repo.clone_url $GITHUB_EVENT_PATH)" >> $GITHUB_ENV
35-
echo "pr_title=$(jq --raw-output .pull_request.title $GITHUB_EVENT_PATH)" >> $GITHUB_ENV
36-
echo "pr_number=$(jq --raw-output .pull_request.number $GITHUB_EVENT_PATH)" >> $GITHUB_ENV
32+
echo "pr_from_sha=$(jq --raw-output .pull_request.head.sha $GITHUB_EVENT_PATH)" >> $GITHUB_ENV
33+
echo "pr_from_clone_url=$(jq --raw-output .pull_request.head.repo.clone_url $GITHUB_EVENT_PATH)" >> $GITHUB_ENV
34+
echo "pr_to_clone_url=$(jq --raw-output .pull_request.base.repo.clone_url $GITHUB_EVENT_PATH)" >> $GITHUB_ENV
35+
echo "pr_title=$(jq --raw-output .pull_request.title $GITHUB_EVENT_PATH)" >> $GITHUB_ENV
36+
echo "pr_number=$(jq --raw-output .pull_request.number $GITHUB_EVENT_PATH)" >> $GITHUB_ENV
3737
3838
- name: Setup environment variables (Push)
3939
if: github.event_name == 'push'
4040
run: |
41-
repo_url="https://github.com/opensearch-project/OpenSearch"
42-
ref_id=$(git rev-parse HEAD)
43-
branch_name=$(git rev-parse --abbrev-ref HEAD)
44-
echo "branch_name=$branch_name" >> $GITHUB_ENV
45-
echo "pr_from_sha=$ref_id" >> $GITHUB_ENV
46-
echo "pr_from_clone_url=$repo_url" >> $GITHUB_ENV
47-
echo "pr_to_clone_url=$repo_url" >> $GITHUB_ENV
48-
echo "pr_title=Push trigger $branch_name $ref_id $repo_url" >> $GITHUB_ENV
49-
echo "pr_number=Null" >> $GITHUB_ENV
41+
repo_url="https://github.com/opensearch-project/OpenSearch"
42+
ref_id=$(git rev-parse HEAD)
43+
branch_name=$(git rev-parse --abbrev-ref HEAD)
44+
echo "branch_name=$branch_name" >> $GITHUB_ENV
45+
echo "pr_from_sha=$ref_id" >> $GITHUB_ENV
46+
echo "pr_from_clone_url=$repo_url" >> $GITHUB_ENV
47+
echo "pr_to_clone_url=$repo_url" >> $GITHUB_ENV
48+
echo "pr_title=Push trigger $branch_name $ref_id $repo_url" >> $GITHUB_ENV
49+
echo "pr_number=Null" >> $GITHUB_ENV
5050
5151
- name: Checkout opensearch-build repo
52-
uses: actions/checkout@v2
52+
uses: actions/checkout@v3
5353
with:
5454
repository: opensearch-project/opensearch-build
5555
ref: main
5656
path: opensearch-build
5757

5858
- name: Trigger jenkins workflow to run gradle check
5959
run: |
60-
set -e
61-
set -o pipefail
62-
bash opensearch-build/scripts/gradle/gradle-check.sh ${{ secrets.JENKINS_GRADLE_CHECK_GENERIC_WEBHOOK_TOKEN }} | tee -a gradle-check.log
60+
set -e
61+
set -o pipefail
62+
bash opensearch-build/scripts/gradle/gradle-check.sh ${{ secrets.JENKINS_GRADLE_CHECK_GENERIC_WEBHOOK_TOKEN }} | tee -a gradle-check.log
6363
6464
- name: Setup Result Status
6565
if: always()
6666
run: |
67-
WORKFLOW_URL=`cat gradle-check.log | grep 'WORKFLOW_URL' | awk '{print $2}'`
68-
RESULT=`cat gradle-check.log | grep 'Result:' | awk '{print $2}'`
69-
echo "workflow_url=$WORKFLOW_URL" >> $GITHUB_ENV
70-
echo "result=$RESULT" >> $GITHUB_ENV
67+
WORKFLOW_URL=`cat gradle-check.log | grep 'WORKFLOW_URL' | awk '{print $2}'`
68+
RESULT=`cat gradle-check.log | grep 'Result:' | awk '{print $2}'`
69+
echo "workflow_url=$WORKFLOW_URL" >> $GITHUB_ENV
70+
echo "result=$RESULT" >> $GITHUB_ENV
7171
7272
- name: Upload Coverage Report
7373
if: success()
@@ -81,25 +81,25 @@ jobs:
8181
with:
8282
issue-number: ${{ env.pr_number }}
8383
body: |
84-
### Gradle Check (Jenkins) Run Completed with:
85-
* **RESULT:** ${{ env.result }} :white_check_mark:
86-
* **URL:** ${{ env.workflow_url }}
87-
* **CommitID:** ${{ env.pr_from_sha }}
84+
### Gradle Check (Jenkins) Run Completed with:
85+
* **RESULT:** ${{ env.result }} :white_check_mark:
86+
* **URL:** ${{ env.workflow_url }}
87+
* **CommitID:** ${{ env.pr_from_sha }}
8888
8989
- name: Extract Test Failure
9090
if: ${{ github.event_name == 'pull_request_target' && env.result != 'SUCCESS' }}
9191
run: |
92-
TEST_FAILURES=`curl -s "${{ env.workflow_url }}/testReport/api/json?tree=suites\[cases\[status,className,name\]\]" | jq -r '.. | objects | select(.status=="FAILED",.status=="REGRESSION") | (.className + "." + .name)' | uniq -c | sort -n -r | head -n 10`
93-
if [[ "$TEST_FAILURES" != "" ]]
94-
then
95-
echo "test_failures<<EOF" >> $GITHUB_ENV
96-
echo "" >> $GITHUB_ENV
97-
echo "* **TEST FAILURES:**" >> $GITHUB_ENV
98-
echo '```' >> $GITHUB_ENV
99-
echo "$TEST_FAILURES" >> $GITHUB_ENV
100-
echo '```' >> $GITHUB_ENV
101-
echo "EOF" >> $GITHUB_ENV
102-
fi
92+
TEST_FAILURES=`curl -s "${{ env.workflow_url }}/testReport/api/json?tree=suites\[cases\[status,className,name\]\]" | jq -r '.. | objects | select(.status=="FAILED",.status=="REGRESSION") | (.className + "." + .name)' | uniq -c | sort -n -r | head -n 10`
93+
if [[ "$TEST_FAILURES" != "" ]]
94+
then
95+
echo "test_failures<<EOF" >> $GITHUB_ENV
96+
echo "" >> $GITHUB_ENV
97+
echo "* **TEST FAILURES:**" >> $GITHUB_ENV
98+
echo '```' >> $GITHUB_ENV
99+
echo "$TEST_FAILURES" >> $GITHUB_ENV
100+
echo '```' >> $GITHUB_ENV
101+
echo "EOF" >> $GITHUB_ENV
102+
fi
103103
104104
- name: Create Comment Flaky
105105
if: ${{ github.event_name == 'pull_request_target' && success() && env.result != 'SUCCESS' }}
@@ -119,12 +119,12 @@ jobs:
119119
with:
120120
issue-number: ${{ env.pr_number }}
121121
body: |
122-
### Gradle Check (Jenkins) Run Completed with:
123-
* **RESULT:** ${{ env.result }} :x: ${{ env.test_failures }}
124-
* **URL:** ${{ env.workflow_url }}
125-
* **CommitID:** ${{ env.pr_from_sha }}
126-
Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green.
127-
Is the failure [a flaky test](https://github.com/opensearch-project/OpenSearch/blob/main/DEVELOPER_GUIDE.md#flaky-tests) unrelated to your change?
122+
### Gradle Check (Jenkins) Run Completed with:
123+
* **RESULT:** ${{ env.result }} :x: ${{ env.test_failures }}
124+
* **URL:** ${{ env.workflow_url }}
125+
* **CommitID:** ${{ env.pr_from_sha }}
126+
Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green.
127+
Is the failure [a flaky test](https://github.com/opensearch-project/OpenSearch/blob/main/DEVELOPER_GUIDE.md#flaky-tests) unrelated to your change?
128128
129129
- name: Create Issue On Push Failure
130130
if: ${{ github.event_name == 'push' && failure() }}

.github/workflows/precommit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: Gradle Precommit
22
on: [pull_request]
3-
3+
44
jobs:
55
precommit:
66
runs-on: ${{ matrix.os }}
77
strategy:
88
matrix:
9-
os: [ubuntu-latest, windows-latest, macos-latest]
9+
os: [windows-latest, macos-latest] # precommit on ubuntu-latest is run as a part of the gradle-check workflow
1010
steps:
1111
- uses: actions/checkout@v2
1212
- name: Set up JDK 11

.github/workflows/version.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ jobs:
3030
CURRENT_VERSION_ARRAY[2]=$((CURRENT_VERSION_ARRAY[2]+1))
3131
NEXT_VERSION=$(IFS=. ; echo "${CURRENT_VERSION_ARRAY[*]:0:3}")
3232
NEXT_VERSION_UNDERSCORE=$(IFS=_ ; echo "V_${CURRENT_VERSION_ARRAY[*]:0:3}")
33-
NEXT_VERSION_ID=$(IFS=0 ; echo "${CURRENT_VERSION_ARRAY[*]:0:3}99")
33+
if [[ ${#CURRENT_VERSION_ARRAY[2]} -gt 1 ]]; then
34+
NEXT_VERSION_ID="${CURRENT_VERSION_ARRAY[0]:0:3}0${CURRENT_VERSION_ARRAY[1]:0:3}${CURRENT_VERSION_ARRAY[2]:0:3}99"
35+
else
36+
NEXT_VERSION_ID=$(IFS=0 ; echo "${CURRENT_VERSION_ARRAY[*]:0:3}99")
37+
fi
3438
echo "TAG=$TAG" >> $GITHUB_ENV
3539
echo "BASE=$BASE" >> $GITHUB_ENV
3640
echo "BASE_X=$BASE_X" >> $GITHUB_ENV

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
3535
- Bump `io.opencensus:opencensus-api` from 0.18.0 to 0.31.1 ([#7291](https://github.com/opensearch-project/OpenSearch/pull/7291))
3636
- OpenJDK Update (April 2023 Patch releases) ([#7344](https://github.com/opensearch-project/OpenSearch/pull/7344)
3737
- Bump `com.google.http-client:google-http-client:1.43.2` from 1.42.0 to 1.43.2 ([7928](https://github.com/opensearch-project/OpenSearch/pull/7928)))
38+
- Add Opentelemetry dependencies ([#7543](https://github.com/opensearch-project/OpenSearch/issues/7543))
39+
- Bump `org.bouncycastle:bcprov-jdk15on` to `org.bouncycastle:bcprov-jdk15to18` version 1.75 ([8247](https://github.com/opensearch-project/OpenSearch/pull/8247))
40+
- Bump `org.bouncycastle:bcmail-jdk15on` to `org.bouncycastle:bcmail-jdk15to18` version 1.75 ([8247](https://github.com/opensearch-project/OpenSearch/pull/8247))
41+
- Bump `org.bouncycastle:bcpkix-jdk15on` to `org.bouncycastle:bcpkix-jdk15to18` version 1.75 ([8247](https://github.com/opensearch-project/OpenSearch/pull/8247))
42+
43+
3844

3945
### Changed
4046
- [CCR] Add getHistoryOperationsFromTranslog method to fetch the history snapshot from translogs ([#3948](https://github.com/opensearch-project/OpenSearch/pull/3948))
@@ -44,6 +50,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4450
- Change http code for DecommissioningFailedException from 500 to 400 ([#5283](https://github.com/opensearch-project/OpenSearch/pull/5283))
4551
- Improve summary error message for invalid setting updates ([#4792](https://github.com/opensearch-project/OpenSearch/pull/4792))
4652
- Pass localNode info to all plugins on node start ([#7919](https://github.com/opensearch-project/OpenSearch/pull/7919))
53+
- Improved performance of parsing floating point numbers ([#7909](https://github.com/opensearch-project/OpenSearch/pull/7909))
4754

4855
### Deprecated
4956

@@ -74,15 +81,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
7481

7582
## [Unreleased 2.x]
7683
### Added
84+
- [SearchPipeline] Add new search pipeline processor type, SearchPhaseResultsProcessor, that can modify the result of one search phase before starting the next phase.([#7283](https://github.com/opensearch-project/OpenSearch/pull/7283))
7785
- Add task cancellation monitoring service ([#7642](https://github.com/opensearch-project/OpenSearch/pull/7642))
7886
- Add TokenManager Interface ([#7452](https://github.com/opensearch-project/OpenSearch/pull/7452))
7987
- Add Remote store as a segment replication source ([#7653](https://github.com/opensearch-project/OpenSearch/pull/7653))
8088
- Implement concurrent aggregations support without profile option ([#7514](https://github.com/opensearch-project/OpenSearch/pull/7514))
8189
- Add dynamic index and cluster setting for concurrent segment search ([#7956](https://github.com/opensearch-project/OpenSearch/pull/7956))
8290
- Add descending order search optimization through reverse segment read. ([#7967](https://github.com/opensearch-project/OpenSearch/pull/7967))
91+
- [Search pipelines] Added search pipelines output to node stats ([#8053](https://github.com/opensearch-project/OpenSearch/pull/8053))
8392
- Update components of segrep backpressure to support remote store. ([#8020](https://github.com/opensearch-project/OpenSearch/pull/8020))
8493
- Make remote cluster connection setup in async ([#8038](https://github.com/opensearch-project/OpenSearch/pull/8038))
8594
- Add API to initialize extensions ([#8029]()https://github.com/opensearch-project/OpenSearch/pull/8029)
95+
- Add distributed tracing framework ([#7543](https://github.com/opensearch-project/OpenSearch/issues/7543))
96+
- Enable Point based optimization for custom comparators ([#8168](https://github.com/opensearch-project/OpenSearch/pull/8168))
8697

8798
### Dependencies
8899
- Bump `com.azure:azure-storage-common` from 12.21.0 to 12.21.1 (#7566, #7814)
@@ -113,6 +124,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
113124
- Bump `org.apache.hadoop:hadoop-minicluster` from 3.3.5 to 3.3.6 (#8257)
114125
- Bump `io.projectreactor.netty:reactor-netty-http` from 1.1.7 to 1.1.8 (#8256)
115126
- [Upgrade] Lucene 9.7.0 release (#8272)
127+
- Bump `org.jboss.resteasy:resteasy-jackson2-provider` from 3.0.26.Final to 6.2.4.Final in /qa/wildfly ([#8209](https://github.com/opensearch-project/OpenSearch/pull/8209))
128+
- Bump `com.google.api-client:google-api-client` from 1.34.0 to 2.2.0 ([#8276](https://github.com/opensearch-project/OpenSearch/pull/8276))
116129

117130
### Changed
118131
- Replace jboss-annotations-api_1.2_spec with jakarta.annotation-api ([#7836](https://github.com/opensearch-project/OpenSearch/pull/7836))
@@ -127,17 +140,24 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
127140
- Compress and cache cluster state during validate join request ([#7321](https://github.com/opensearch-project/OpenSearch/pull/7321))
128141
- [Snapshot Interop] Add Changes in Create Snapshot Flow for remote store interoperability. ([#7118](https://github.com/opensearch-project/OpenSearch/pull/7118))
129142
- Allow insecure string settings to warn-log usage and advise to migration of a newer secure variant ([#5496](https://github.com/opensearch-project/OpenSearch/pull/5496))
143+
- Add self-organizing hash table to improve the performance of bucket aggregations ([#7652](https://github.com/opensearch-project/OpenSearch/pull/7652))
144+
- Check UTF16 string size before converting to String to avoid OOME ([#7963](https://github.com/opensearch-project/OpenSearch/pull/7963))
145+
- Move ZSTD compression codecs out of the sandbox ([#7908](https://github.com/opensearch-project/OpenSearch/pull/7908))
146+
130147

131148
### Deprecated
132149

133150
### Removed
134151
- Remove `COMPRESSOR` variable from `CompressorFactory` and use `DEFLATE_COMPRESSOR` instead ([7907](https://github.com/opensearch-project/OpenSearch/pull/7907))
152+
- Remove concurrency based minimum file cache size restriction ([#8294](https://github.com/opensearch-project/OpenSearch/pull/8294))
135153

136154
### Fixed
137155
- Fixing error: adding a new/forgotten parameter to the configuration for checking the config on startup in plugins/repository-s3 #7924
138156
- Enforce 512 byte document ID limit in bulk updates ([#8039](https://github.com/opensearch-project/OpenSearch/pull/8039))
139157
- With only GlobalAggregation in request causes unnecessary wrapping with MultiCollector ([#8125](https://github.com/opensearch-project/OpenSearch/pull/8125))
140158
- Fix mapping char_filter when mapping a hashtag ([#7591](https://github.com/opensearch-project/OpenSearch/pull/7591))
159+
- Fix NPE in multiterms aggregations involving empty buckets ([#7318](https://github.com/opensearch-project/OpenSearch/pull/7318))
160+
- Precise system clock time in MasterService debug logs ([#7902](https://github.com/opensearch-project/OpenSearch/pull/7902))
141161

142162
### Security
143163

0 commit comments

Comments
 (0)