Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create opensearch-cross-cluster-replication.release-notes-2.12.0.0.md #1320

Closed
wants to merge 88 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
5ab5469
Use the published zip for security plugin (#455) (#457)
opensearch-trigger-bot[bot] Jul 19, 2022
9a0d798
Adding Index Settings validation before starting replication (#461) (…
opensearch-trigger-bot[bot] Aug 3, 2022
3ffd3e0
Changes to support replication plugin on OpenSearch v2.2.0 (#469) (#473)
opensearch-trigger-bot[bot] Aug 4, 2022
e0b9002
Modified security artifacts to fetch from latest build version (#474)…
opensearch-trigger-bot[bot] Aug 8, 2022
5959754
add updateVersion task (#489)
prudhvigodithi Aug 24, 2022
862e79a
Modified _stop replication API to remove any stale replication settin…
opensearch-trigger-bot[bot] Aug 26, 2022
9df9639
Updating filters as well during Alias update (#491) (#499)
gbbafna Aug 26, 2022
d373ac4
Fix for missing ShardReplicationTasks on new nodes (#497) (#524)
opensearch-trigger-bot[bot] Aug 26, 2022
61aaa49
Add lastExecutionTime for autofollow coroutine (#508) (#516)
opensearch-trigger-bot[bot] Aug 26, 2022
ff4fe66
For segrep enabled indices, use NRTReplicationEngine for replica shar…
opensearch-trigger-bot[bot] Aug 30, 2022
4006ef6
Bumped snakeyaml version to address CVE-2022-25857 (#540)
amkhar Sep 7, 2022
0a44d0b
Increment version to 2.3.0-SNAPSHOT (#536)
opensearch-trigger-bot[bot] Sep 7, 2022
78a6fb7
2.3.0 release notes (#547)
ankitkala Sep 7, 2022
569c0ab
Upgrade Snakeyml and Jackson (#574)
opensearch-trigger-bot[bot] Oct 4, 2022
3603326
Merge pull request #589 from prudhvigodithi/main (#593)
ankitkala Oct 21, 2022
93c767b
Updated jackson databind version to 2.13.4.2 (#596)
mohitamg Oct 20, 2022
278c1ef
Changed jacoco tool version to 0.8.7
mohitamg Oct 26, 2022
6766bed
Increment version to 2.4.0-SNAPSHOT (#553)
opensearch-trigger-bot[bot] Oct 26, 2022
967961b
Add windows & mac build (#591) (#599)
opensearch-trigger-bot[bot] Oct 26, 2022
9e4c066
Merge pull request #597 from opensearch-project/backport/backport-596…
mohitamg Oct 26, 2022
eab1302
Include default index settings during leader setting validation (#601…
opensearch-trigger-bot[bot] Oct 31, 2022
dab6546
Add 2.4 release notes (#617)
ankitkala Oct 31, 2022
a7e86d9
stopReplication API removed from integ test cases (#625)
sricharanvuppu Nov 21, 2022
e3d0868
Increment version to 2.5.0-SNAPSHOT (#621)
opensearch-trigger-bot[bot] Dec 9, 2022
93fe3fc
stopping replication before clean up of indices (#635)
sricharanvuppu Dec 27, 2022
475d8da
Updating multi-field mapping at follower (#671) (#680)
sricharanvuppu Jan 10, 2023
bc3890e
Increment version to 2.6.0-SNAPSHOT (#676)
opensearch-trigger-bot[bot] Feb 7, 2023
0aa8302
Adding 2.6.0 release notes (#716)
ankitkala Feb 21, 2023
f11c876
Add github workflow for auto release (#712) (#714)
opensearch-trigger-bot[bot] Feb 21, 2023
e4f2143
Add github action to publish snapshots to maven
ankitkala Feb 21, 2023
a8a31d2
Build Fix: Update Strings.toString to pass the JSON XContentType (#699)
ankitkala Feb 3, 2023
56a9b27
Update release notes file path in auto release workflow (#726) (#727)
opensearch-trigger-bot[bot] Feb 28, 2023
0d6052f
Merge pull request #543 from monu-aws/main
monusingh-1 Nov 3, 2022
58c6cbe
Increment version to 2.7.0-SNAPSHOT (#724)
opensearch-trigger-bot[bot] Mar 1, 2023
aa1c664
Merge pull request #733 from opensearch-project/backport/backport-543…
monusingh-1 Mar 1, 2023
72082ad
Modified autofollow stats to rely on single source for failed indices…
opensearch-trigger-bot[bot] Mar 9, 2023
ac2040a
Merge pull request #745 from opensearch-project/monu-aws-patch-1
monusingh-1 Mar 23, 2023
86a58a3
Merge pull request #749 from opensearch-project/backport/backportt-74…
monusingh-1 Mar 23, 2023
88ce8be
Update imports from org.opensearch.common.xcontent to org.opensearch.…
opensearch-trigger-bot[bot] Mar 30, 2023
0449269
Adding a proxy mode connection setup for CCR (#786) (#795)
opensearch-trigger-bot[bot] Apr 14, 2023
f265458
handling null pointer exception in multi-filed mapping (#757) (#789)
opensearch-trigger-bot[bot] Apr 14, 2023
16908cc
Handled batch requests for replication metadata update under cluster …
opensearch-trigger-bot[bot] Apr 14, 2023
10e4449
Add setting to use document replication for system indices. (#802) (#…
opensearch-trigger-bot[bot] Apr 18, 2023
794b6ec
Update Gradle Wrapper to 7.6.1 (#815)
monusingh-1 Apr 28, 2023
9028516
[Backport] Allow knn index to be used with ccr (#760) (#813) (#817)
monusingh-1 May 2, 2023
c226dc4
Extract number of nodes (#826) (#828)
opensearch-trigger-bot[bot] May 17, 2023
845edbd
Increment version to 2.8.0-SNAPSHOT
opensearch-ci-bot May 18, 2023
ac02427
Update snakeyaml to version 2.0 (#861)
opensearch-trigger-bot[bot] May 23, 2023
bfcda68
Merge pull request #807 from opensearch-project/create-pull-request/2…
rishabh6788 May 23, 2023
9d04864
Handle serialization issues with UpdateReplicationStateDetailsRequest…
opensearch-trigger-bot[bot] May 24, 2023
314fdb9
Update retention lease format (#850)
monusingh-1 May 24, 2023
acc51d5
Updated plugin code based on OpenSearch-3.0 upstream changes (#766) (…
monusingh-1 May 24, 2023
ea56da7
Update to set remoteTranslogEnabled=false (#834) (#836)
opensearch-trigger-bot[bot] May 24, 2023
57755ec
Merge pull request #624 from priyatsh/main (#888)
monusingh-1 May 26, 2023
8ef6451
Add release notes for 2.8 release
monusingh-1 May 29, 2023
9e06f40
[Backport] Handle clean-up of stale index task during cancellation (#…
saikaranam-amazon May 31, 2023
d6ef8b3
Handling exception in getAssignment method (#881) (#923)
opensearch-trigger-bot[bot] May 31, 2023
689ae33
Modify autofollow retry scheduler logic check to account for complete…
saikaranam-amazon Jun 2, 2023
a2bfc04
Correctly updating the followerCheckpoint in stats api (#438)
gbbafna Jul 4, 2022
f9aca47
Initialize the leaderCheckpoint with follower shard's localCheckpoint…
ankitkala Jun 2, 2023
474eb67
Remove any stale replication tasks from cluster state (#905) (#973)
opensearch-trigger-bot[bot] Jun 2, 2023
a09aab9
Use strong password in integ test (#987) (#990)
opensearch-trigger-bot[bot] Jun 7, 2023
b98d384
Avoid use of indicesService in Resume replicaiton flow (#1030) (#1035)
opensearch-trigger-bot[bot] Jul 6, 2023
d2b49ff
[Backport 2.x] Handling OpenSearchRejectExecuteException Exception (#…
sricharanvuppu Jul 12, 2023
51cf593
Add release notes for 2.9.0 (#1063) (#1088)
opensearch-trigger-bot[bot] Jul 21, 2023
46403eb
Backport Refactor changes to 2.x (#1092)
monusingh-1 Jul 25, 2023
1bdcdec
[Backport 2.x] [Refactor] for CircuitBreaker and Lifecycle (#1097)
opensearch-trigger-bot[bot] Aug 7, 2023
9e2587c
Refactor for upstream changes from PR import 9082 (#1102) (#1103)
opensearch-trigger-bot[bot] Aug 16, 2023
63db826
Fix test for single node and consume numNodes (#1091) (#1105)
monusingh-1 Aug 18, 2023
22f41f9
Revert "Add setting to use document replication for system indices. (…
opensearch-trigger-bot[bot] Aug 22, 2023
022ca32
Implement abstract methods of Repository (#1111) (#1113)
opensearch-trigger-bot[bot] Sep 1, 2023
fefbcf8
Removed timeout excessive logging in case of index is idle in replica…
opensearch-trigger-bot[bot] Sep 4, 2023
4bfc657
Create opensearch-cross-cluster-replication.release-notes-2.10.0.0.md…
mohitamg Sep 6, 2023
752b805
Implement abstract methods (#1121) (#1122)
opensearch-trigger-bot[bot] Sep 7, 2023
1fc3c6c
update requirements to use latest version of request (#1106) (#1112)
opensearch-trigger-bot[bot] Sep 8, 2023
294a993
Remove numNodes parameter in security tests (#991) (#1135)
soosinha Sep 11, 2023
ab5375b
Increment version to 2.11.0-SNAPSHOT (#1120)
opensearch-trigger-bot[bot] Sep 26, 2023
5c3a3c2
Create opensearch-cross-cluster-replication.release-notes-2.11.0.md (…
opensearch-trigger-bot[bot] Oct 5, 2023
1f623c9
Container image (#1249) (#1273)
monusingh-1 Oct 18, 2023
ee577a1
CCR: Route requests to primary for remote store enabled leader cluste…
opensearch-trigger-bot[bot] Oct 18, 2023
6c2205a
Add 2.11.1.0 release notes (#1285) (#1286)
opensearch-trigger-bot[bot] Nov 22, 2023
712e21e
Add support for SystemIndex (#1290) (#1291)
opensearch-trigger-bot[bot] Dec 7, 2023
95028c8
Correct error message when field are not passed when starting replica…
opensearch-trigger-bot[bot] Dec 7, 2023
cb5af60
Increment version to 2.12 (#1296)
monusingh-1 Dec 12, 2023
34a1d6e
Use latest version of ipaddress Library (#1302) (#1305)
opensearch-trigger-bot[bot] Jan 2, 2024
86d3f67
Ignoring update of final type settings in updateSettings function (#1…
opensearch-trigger-bot[bot] Jan 2, 2024
7e2902c
Fix build failures (#1315) (#1316)
opensearch-trigger-bot[bot] Feb 2, 2024
315e600
Create opensearch-cross-cluster-replication.release-notes-2.12.0.0.md
mohitamg Feb 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
29 changes: 29 additions & 0 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Releases

on:
push:
tags:
- '*'

jobs:

build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: GitHub App token
id: github_app_token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
installation_id: 22958780
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
- uses: actions/checkout@v2
- uses: ncipollo/release-action@v1
with:
github_token: ${{ steps.github_app_token.outputs.token }}
bodyFile: release-notes/opensearch-cross-cluster-replication.release-notes-${{steps.tag.outputs.tag}}.md
62 changes: 62 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: CCR Test Workflow
# This workflow is triggered on pull requests to main branch
on:
pull_request:
branches:
- '*'
push:
branches:
- '*'

# We build for all combinations but run tests only on one combination (linux & latest java)
jobs:
Get-CI-Image-Tag:
uses: opensearch-project/opensearch-build/.github/workflows/get-ci-image-tag.yml@main
with:
product: opensearch

build-test-linux:
strategy:
matrix:
java: [11, 17]

name: Build CCR Plugin on Linux using Container Image
runs-on: ubuntu-latest
needs: Get-CI-Image-Tag
container:
# using the same image which is used by opensearch-build team to build the OpenSearch Distribution
# this image tag is subject to change as more dependencies and updates will arrive over time
image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }}
# need to switch to root so that github actions can install runner binary on container without permission issues.
options: --user root

steps:
- name: Checkout CCR
uses: actions/checkout@v2
- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}

- name: Run build
# switching the user, as OpenSearch cluster can only be started as root/Administrator on linux-deb/linux-rpm/windows-zip.
run: |
chown -R 1000:1000 `pwd`
su `id -un 1000` -c 'whoami && java -version && ./gradlew --refresh-dependencies clean release -D"build.snapshot=true"'
- name: Upload failed logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: logs
path: |
build/testclusters/integTest-*/logs/*
build/testclusters/leaderCluster-*/logs/*
build/testclusters/followCluster-*/logs/*
- name: Create Artifact Path
run: |
mkdir -p cross-cluster-replication-artifacts
cp ./build/distributions/*.zip cross-cluster-replication-artifacts
- name: Upload Coverage Report
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
32 changes: 10 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test and Build Workflow
name: Build Replication plugin
# This workflow is triggered on pull requests to main branch
on:
pull_request:
Expand All @@ -8,16 +8,21 @@ on:
branches:
- '*'

# We build for other platforms except linux which is already covered in build-and-test.
# Also, We're not running tests here as those are already covered with linux build.
jobs:
build:
continue-on-error: true
strategy:
matrix:
java:
- 11
- 17
os:
- windows-latest
- macos-latest
# Job name
name: Build Replication plugin
runs-on: ubuntu-latest
name: Java ${{ matrix.java }} On ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK ${{ matrix.java }}
Expand All @@ -29,21 +34,4 @@ jobs:
uses: actions/checkout@v2
- name: Build and run Replication tests
run: |
./gradlew clean release -Dbuild.snapshot=true
- name: Upload failed logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: logs
path: |
build/testclusters/integTest-*/logs/*
build/testclusters/leaderCluster-*/logs/*
build/testclusters/followCluster-*/logs/*
- name: Create Artifact Path
run: |
mkdir -p cross-cluster-replication-artifacts
cp ./build/distributions/*.zip cross-cluster-replication-artifacts
- name: Uploads coverage
with:
fetch-depth: 2
uses: codecov/[email protected]
./gradlew --refresh-dependencies clean release -D"build.snapshot=true" -x test -x IntegTest
34 changes: 34 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish snapshots to maven

on:
workflow_dispatch:
push:
branches: [
main
1.*
2.*
]

jobs:
build-and-publish-snapshots:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- uses: actions/setup-java@v3
with:
distribution: temurin # Temurin is a distribution of adoptium
java-version: 17
- uses: actions/checkout@v3
- uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.PUBLISH_SNAPSHOTS_ROLE }}
aws-region: us-east-1
- name: publish snapshots to maven
run: |
export SONATYPE_USERNAME=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-username --query SecretString --output text)
export SONATYPE_PASSWORD=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-password --query SecretString --output text)
echo "::add-mask::$SONATYPE_USERNAME"
echo "::add-mask::$SONATYPE_PASSWORD"
./gradlew publishPluginZipPublicationToSnapshotsRepository
140 changes: 140 additions & 0 deletions .github/workflows/security-knn-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
name: Security and knn tests
# This workflow is triggered on pull requests to main branch
on:
pull_request:
branches:
- '*'
push:
branches:
- '*'

jobs:
Get-CI-Image-Tag:
uses: opensearch-project/opensearch-build/.github/workflows/get-ci-image-tag.yml@main
with:
product: opensearch

req:
# Job name
name: plugin check
runs-on: ubuntu-latest
outputs:
isSecurityPluginAvailable: ${{ steps.plugin-availability-check.outputs.isSecurityPluginAvailable }}
isKnnPluginAvailable: ${{ steps.plugin-availability-check.outputs.isKnnPluginAvailable }}
steps:
# This step uses the checkout Github action: https://github.com/actions/checkout
- name: Checkout Branch
uses: actions/checkout@v2
- id: plugin-availability-check
name: "plugin check"
run: |
opensearch_version=$(grep "System.getProperty(\"opensearch.version\", \"" build.gradle | grep '\([0-9]\|[.]\)\{5\}' -o)
opensearch_version=$opensearch_version".0-SNAPSHOT"
# we publish build artifacts to the below url
sec_plugin_url="https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/plugin/opensearch-security/"$opensearch_version"/"
sec_st=$(curl -s -o /dev/null -w "%{http_code}" $sec_plugin_url)
if [ "$sec_st" = "200" ]; then
echo "isSecurityPluginAvailable=True" >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
else
echo "isSecurityPluginAvailable=False" >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
fi
knn_plugin_url="https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/plugin/opensearch-knn/"$opensearch_version"/"
knn_st=$(curl -s -o /dev/null -w "%{http_code}" $knn_plugin_url)
if [ "$knn_st" = "200" ]; then
echo "isKnnPluginAvailable=True" >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
else
echo "isKnnPluginAvailable=False" >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
fi

build-linux:
needs: [req, Get-CI-Image-Tag]
if: ${{ 'True' == needs.req.outputs.isSecurityPluginAvailable }}
# Job name
name: Build and Run Security tests
runs-on: ubuntu-latest
container:
# using the same image which is used by opensearch-build team to build the OpenSearch Distribution
# this image tag is subject to change as more dependencies and updates will arrive over time
image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }}
# need to switch to root so that github actions can install runner binary on container without permission issues.
options: --user root

steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
# This step uses the checkout Github action: https://github.com/actions/checkout
- name: Checkout Branch
uses: actions/checkout@v2
- name: Build and run Replication tests
run: |
chown -R 1000:1000 `pwd`
ls -al src/test/resources/security/plugin
su `id -un 1000` -c "whoami && java -version && ./gradlew --refresh-dependencies clean release -Dbuild.snapshot=true -Psecurity=true"
- name: Upload failed logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: logs
path: |
build/testclusters/integTest-*/logs/*
build/testclusters/leaderCluster-*/logs/*
build/testclusters/followCluster-*/logs/*
- name: Create Artifact Path
run: |
mkdir -p cross-cluster-replication-artifacts
cp ./build/distributions/*.zip cross-cluster-replication-artifacts
- name: Uploads coverage
with:
fetch-depth: 2
uses: codecov/[email protected]

knn-build-linux:
needs: [req, Get-CI-Image-Tag]
if: ${{ 'True' == needs.req.outputs.isKnnPluginAvailable }}
# Job name
name: Build and Run Knn tests
runs-on: ubuntu-latest
container:
# using the same image which is used by opensearch-build team to build the OpenSearch Distribution
# this image tag is subject to change as more dependencies and updates will arrive over time
image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }}
# need to switch to root so that github actions can install runner binary on container without permission issues.
options: --user root

steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
# This step uses the checkout Github action: https://github.com/actions/checkout
- name: Checkout Branch
uses: actions/checkout@v2
- name: Build and run Replication tests
run: |
chown -R 1000:1000 `pwd`
su `id -un 1000` -c 'whoami && java -version && ./gradlew --refresh-dependencies clean release -Dbuild.snapshot=true -PnumNodes=1 -Dtests.class=org.opensearch.replication.BasicReplicationIT -Dtests.method="test knn index replication" -Pknn=true'
- name: Upload failed logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: logs
path: |
build/testclusters/integTest-*/logs/*
build/testclusters/leaderCluster-*/logs/*
build/testclusters/followCluster-*/logs/*
- name: Create Artifact Path
run: |
mkdir -p cross-cluster-replication-artifacts
cp ./build/distributions/*.zip cross-cluster-replication-artifacts
- name: Uploads coverage
with:
fetch-depth: 2
uses: codecov/[email protected]
16 changes: 2 additions & 14 deletions .github/workflows/security-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,13 @@ jobs:
runs-on: ubuntu-latest
steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK 11
- name: Set Up JDK 17
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17
# This step uses the checkout Github action: https://github.com/actions/checkout
- name: Checkout Branch
uses: actions/checkout@v2
# Security plugin dependency
- name: Checkout security
uses: actions/checkout@v2
with:
repository: 'opensearch-project/security'
path: security
ref: 'main'
- name: Build security
working-directory: ./security
run: |
./gradlew clean build -Dbuild.snapshot=false -x test
cp build/distributions/opensearch-security-*.zip ../src/test/resources/security/plugin/opensearch-security.zip
- name: Build and run Replication tests
run: |
ls -al src/test/resources/security/plugin
Expand Down
Loading
Loading