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

Issue33 #863

Closed
wants to merge 87 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
b63320b
Removed recursion from Explain Action to avoid stackoverflow in some …
opensearch-trigger-bot[bot] Jul 21, 2022
5846539
Use disk stats, not RAM, for shrink action and node evaluation. (#418…
opensearch-trigger-bot[bot] Jul 28, 2022
44cb518
moved _doc_count field from rollup._doc_count to root of document (#4…
opensearch-trigger-bot[bot] Aug 4, 2022
629c0f6
bump version to 2.2 (#446)
lezzago Aug 5, 2022
1b180d6
added support for mustache scripting of rollup.target_index field (#4…
opensearch-trigger-bot[bot] Aug 5, 2022
01c39b7
added support for searching multiple rollup indices with same mapping…
opensearch-trigger-bot[bot] Aug 5, 2022
77664c1
Add 2.2 release note (#450)
Angie-Zhang Aug 6, 2022
41bbcf3
Multi rollup ndx search (#453) (#455)
opensearch-trigger-bot[bot] Aug 9, 2022
72d727d
Staging for version increment automation (#409) (#468)
opensearch-trigger-bot[bot] Aug 16, 2022
29f3103
Replica Count Validation when awareness replica balance is enabled (#…
opensearch-trigger-bot[bot] Aug 16, 2022
e08a0cc
483: Updated detekt plugin and snakeyaml dependency. Updated a code t…
opensearch-trigger-bot[bot] Sep 1, 2022
783fcee
[FIX] Failed concurrent creates of ISM policies should return http 40…
opensearch-trigger-bot[bot] Sep 1, 2022
a949944
[Backport 2.x] Transform maxclauses fix (#477) (#487)
Angie-Zhang Sep 2, 2022
b1acb0d
Remove HOST_DENY_LIST usage as Notification plugin will own it (#471)…
opensearch-trigger-bot[bot] Sep 7, 2022
05bcd3a
Disable detekt because of the CVE (#497) (#500)
opensearch-trigger-bot[bot] Sep 8, 2022
774e244
Deprecate Master nonmenclature (#501) (#502)
opensearch-trigger-bot[bot] Sep 8, 2022
01a9c22
[AUTO] Increment version to 2.3.0-SNAPSHOT (#484)
opensearch-trigger-bot[bot] Sep 8, 2022
1b7be8c
Added 2.3 release note (#507)
Angie-Zhang Sep 12, 2022
16fc59c
Revert Disable detekt and force choose snakeyml 1.32 (#528) (#529)
opensearch-trigger-bot[bot] Oct 4, 2022
3c002b8
64: Added rounding when using aggreagate script for avg metric. Added…
opensearch-trigger-bot[bot] Oct 4, 2022
50c471b
Adds plugin version sweep background job (#434) (#539)
opensearch-trigger-bot[bot] Oct 4, 2022
8190af6
flaky transform test fix attempt (#542) (#547)
opensearch-trigger-bot[bot] Oct 5, 2022
a0fc916
Update jackson to 2.13.4 (#557) (#559)
opensearch-trigger-bot[bot] Oct 7, 2022
26d4b8d
556: Moved _doc_count from transform._doc_count to root of document (…
opensearch-trigger-bot[bot] Oct 13, 2022
5f12805
Increment version to 2.4.0-SNAPSHOT (#505)
opensearch-trigger-bot[bot] Oct 13, 2022
42090f4
add group = org.opensearch.plugin (#571) (#572)
opensearch-trigger-bot[bot] Oct 13, 2022
cc06a43
Feature/184 introduce security tests (#474) (#574)
opensearch-trigger-bot[bot] Oct 18, 2022
26c9a70
Bugfix/538 Adding timeout and retry to Transform '_search' API calls …
opensearch-trigger-bot[bot] Oct 29, 2022
315f141
Comments assertion in Flaky transform runner test(#581) (#582)
opensearch-trigger-bot[bot] Oct 31, 2022
85d9ec1
alias in rollup target_index field (#445) (#586)
opensearch-trigger-bot[bot] Nov 3, 2022
76a8338
Adds an alias action (#35) (#575) (#589)
opensearch-trigger-bot[bot] Nov 3, 2022
d5e6bee
Error prevention stage 1 (#579) (#591)
opensearch-trigger-bot[bot] Nov 3, 2022
610aeb6
Fix the compatibility issue of awareness replica validation (#595) (#…
opensearch-trigger-bot[bot] Nov 3, 2022
ec698ba
Fix a test in rollup target alias change (#594) (#601)
opensearch-trigger-bot[bot] Nov 4, 2022
bc20e63
2.4 release note (#598) (#599)
opensearch-trigger-bot[bot] Nov 4, 2022
8989339
Backport from main to 2.x (#614)
bowenlan-amzn Nov 21, 2022
42a5fd8
Security Workflow (#611) (#619)
opensearch-trigger-bot[bot] Nov 30, 2022
b76c9de
Bump 2.5.0 (#638) (#640)
opensearch-trigger-bot[bot] Dec 29, 2022
1b76e5b
added support for QueryStringQuery in rollups (#616) (#654)
opensearch-trigger-bot[bot] Jan 10, 2023
aabe535
Add option for bwc tests in bundle level (#652)
zelinh Jan 10, 2023
0b10045
2.5 release note (#658) (#659)
opensearch-trigger-bot[bot] Jan 11, 2023
ad4cdee
Reduce code difference (#670) (#674)
bowenlan-amzn Jan 31, 2023
f0a5dac
Added Publish snapshots to maven via GHA workflow (#690) (#692)
opensearch-trigger-bot[bot] Feb 21, 2023
0f06693
Increment version to 2.6.0-SNAPSHOT (#653)
opensearch-trigger-bot[bot] Feb 21, 2023
d716146
2.6 release note (#693) (#694)
opensearch-trigger-bot[bot] Feb 21, 2023
c71c9d0
Bump mockito version (#701) (#704)
opensearch-trigger-bot[bot] Feb 27, 2023
2c6a9c3
Replace Map, List, and Set in org.opensearch.common.collect with jav…
opensearch-trigger-bot[bot] Mar 24, 2023
bd6ff52
Fixed xContent dependencies due to OSCore changes (#721)
Mar 31, 2023
5254740
Shrink action Fix (#718)
Apr 10, 2023
f0806f3
Revert version to 2.6 for AutoSync (#742)
Apr 12, 2023
b8afbd4
Bump version to 2.7 for AutoSync (#743)
Apr 12, 2023
43f764a
Error Prevention: Add index priority action (#729) (#747)
opensearch-trigger-bot[bot] Apr 13, 2023
83ff21f
Error Prevention: Add notification, shrink, allocation rollup action …
opensearch-trigger-bot[bot] Apr 14, 2023
5e004d6
Error Prevention: Add close action (#728) (#749)
opensearch-trigger-bot[bot] Apr 14, 2023
3097fdc
Error Prevention: Add transition action (#744) (#751)
opensearch-trigger-bot[bot] Apr 14, 2023
f8dbfea
Error Prevention: Add snapshot action (#745) (#752)
opensearch-trigger-bot[bot] Apr 14, 2023
f1ff7a4
Added 2.7 release notes. (#755) (#756)
opensearch-trigger-bot[bot] Apr 18, 2023
c059977
Increment version to 2.8.0-SNAPSHOT (#759)
opensearch-trigger-bot[bot] Apr 26, 2023
7939003
update to gradle 8.1.1 in 2.x branch (#777)
yuye-aws May 12, 2023
80b470d
Date nanos rollup fix (#772) (#782)
opensearch-trigger-bot[bot] May 16, 2023
dc4f9cf
[backport 2.x] Rollup Interceptor sourceIndex NPE fix (#773) (#781)
petardz May 16, 2023
c31439a
AddPolicyAction - Recursion removal (#779) (#785)
petardz May 22, 2023
04bf664
[Backport 2.x] CRUD api for long running operation notification confi…
zhichao-aws May 25, 2023
4b5a4d8
[Backport 2.x] Feature/index operation notification (#793)
opensearch-trigger-bot[bot] May 26, 2023
230e0d4
Add 2.8 release notes (#794) (#795)
opensearch-trigger-bot[bot] May 26, 2023
bf3ffa9
Use original PR numbers in 2.8 release notes. (#796) (#797)
opensearch-trigger-bot[bot] May 30, 2023
5403f61
Support for system index interface (#789)
bowenlan-amzn May 30, 2023
09003a0
Bugfix/202 transform date add date conversion (#622) (#803)
opensearch-trigger-bot[bot] May 31, 2023
02ed7d9
Added to CODEOWNERS and MAINTAINERS files. (#810) (#811)
AWSHurneyt Jun 14, 2023
403577e
Increment version to 2.9.0-SNAPSHOT (#805)
opensearch-trigger-bot[bot] Jun 29, 2023
4fda78a
[Backport 2.x] ImmutableOpenMap to j.u.Map (#838)
Hailong-am Jul 2, 2023
749b1bd
Fix LRON concurrent indexing throw ResourceAlreadyExists (#831) (#842)
opensearch-trigger-bot[bot] Jul 3, 2023
8c1e618
remove runtime notification settings (#839) (#843)
opensearch-trigger-bot[bot] Jul 3, 2023
e0a1b8f
Upgrade httpcomponent version after OpenSearch core's upgrade (#847) …
opensearch-trigger-bot[bot] Jul 10, 2023
9ddecd8
Fix build errors after refactoring of Strings class in core (#786) (#…
Hailong-am Jul 10, 2023
807e8a1
starting drafting check to detect transient failures in rollover
ronnaksaxena Jul 14, 2023
37c0910
tried sending request
ronnaksaxena Jul 15, 2023
a3bba14
fixed imports
ronnaksaxena Jul 15, 2023
41526c0
actually fixed commits now
ronnaksaxena Jul 15, 2023
c2756b1
able to detect if index was created after rollover step starts, but n…
ronnaksaxena Jul 17, 2023
cb5d933
started working on tests
ronnaksaxena Jul 17, 2023
1053242
added a second integretation test after my fix
ronnaksaxena Jul 17, 2023
ade2af1
added TODOs for other 4 nonidempotent steps
ronnaksaxena Jul 18, 2023
e1940f9
temp
ronnaksaxena Jul 18, 2023
569bbcd
detects rollover transient failure
ronnaksaxena Jul 19, 2023
c319293
removed print statements
ronnaksaxena Jul 19, 2023
d16e5c9
delete old integ test
ronnaksaxena Jul 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# This should match the owning team set up in https://github.com/orgs/opensearch-project/teams
* @opensearch-project/index-management
* @bowenlan-amzn @getsaurabh02 @lezzago @praveensameneni @xluo-aws @gaobinlong @Hailong-am @amsiglan @sbcd90 @eirsep @AWSHurneyt
32 changes: 32 additions & 0 deletions .github/workflows/bwc-test-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Backward compatibility test workflow
on:
pull_request:
branches:
- "*"
push:
branches:
- "*"

jobs:
test:
# This job runs on Linux
runs-on: ubuntu-latest
steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK
uses: actions/setup-java@v1
with:
java-version: 17
# index-management
- name: Checkout Branch
uses: actions/checkout@v2
- name: Run IM Backwards Compatibility Tests
run: |
echo "Running backwards compatibility tests..."
./gradlew bwcTestSuite
- name: Upload failed logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: logs
path: build/testclusters/indexmanagementBwcCluster*/logs/*
1 change: 1 addition & 0 deletions .github/workflows/create-documentation-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Create Documentation Issue
on:
pull_request:
types:
- closed
- labeled
env:
PR_NUMBER: ${{ github.event.number }}
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/dco.yml

This file was deleted.

83 changes: 83 additions & 0 deletions .github/workflows/docker-security-test-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Docker Security Test Workflow
on:
pull_request:
branches:
- "*"
push:
branches:
- "*"

jobs:
test:
# This job runs on Linux
runs-on: ubuntu-latest
steps:
- name: Set Up JDK
uses: actions/setup-java@v1
with:
java-version: 17
- name: Checkout Branch
uses: actions/checkout@v2
- name: Build Index Management
run: ./gradlew assemble
- name: Pull and Run Docker
run: |
plugin=`basename $(ls build/distributions/*.zip)`
list_of_files=`ls`
list_of_all_files=`ls build/distributions/`
version=`echo $plugin|awk -F- '{print $4}'| cut -d. -f 1-3`
plugin_version=`echo $plugin|awk -F- '{print $4}'| cut -d. -f 1-4`
qualifier=`echo $plugin|awk -F- '{print $4}'| cut -d. -f 1-1`
candidate_version=`echo $plugin|awk -F- '{print $5}'| cut -d. -f 1-1`
if qualifier
then
docker_version=$version-$qualifier
else
docker_version=$version
fi

[[ -z $candidate_version ]] && candidate_version=$qualifier && qualifier=""

echo plugin version plugin_version qualifier candidate_version docker_version
echo "($plugin) ($version) ($plugin_version) ($qualifier) ($candidate_version) ($docker_version)"
echo $ls $list_of_all_files

if docker pull opensearchstaging/opensearch:$docker_version
then
echo "FROM opensearchstaging/opensearch:$docker_version" >> Dockerfile
echo "RUN if [ -d /usr/share/opensearch/plugins/opensearch-index-management ]; then /usr/share/opensearch/bin/opensearch-plugin remove opensearch-index-management; fi" >> Dockerfile
echo "ADD build/distributions/$plugin /tmp/" >> Dockerfile
echo "RUN /usr/share/opensearch/bin/opensearch-plugin install --batch file:/tmp/$plugin" >> Dockerfile
echo "RUN echo 'path.repo: ["/usr/share/opensearch/data/repo"]' >> /usr/share/opensearch/config/opensearch.yml" >> Dockerfile

docker build -t opensearch-index-management:test .
echo "imagePresent=true" >> $GITHUB_ENV
else
echo "imagePresent=false" >> $GITHUB_ENV
fi
- name: Run Docker Image
if: env.imagePresent == 'true'
run: |
cd ..
docker run -p 9200:9200 -d -p 9600:9600 -e "discovery.type=single-node" opensearch-index-management:test
sleep 120
- name: Run Index Management Test for security enabled test cases
if: env.imagePresent == 'true'
run: |
cluster_running=`curl -XGET https://localhost:9200/_cat/plugins -u admin:admin --insecure`
echo $cluster_running
security=`curl -XGET https://localhost:9200/_cat/plugins -u admin:admin --insecure |grep opensearch-security|wc -l`
echo $security
if [ $security -gt 0 ]
then
echo "Security plugin is available"
./gradlew integTest -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername=docker-cluster -Dsecurity=true -Dhttps=true -Duser=admin -Dpassword=admin
else
echo "Security plugin is NOT available skipping this run as tests without security have already been run"
fi
- name: Upload failed logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: logs
path: build/testclusters/integTest-*/logs/*
2 changes: 1 addition & 1 deletion .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches: [ main ]

jobs:
linkchecker:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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: 11
- 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
25 changes: 3 additions & 22 deletions .github/workflows/multi-node-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@ on:
- "*"

jobs:
build:
# Job name
name: Build Index Management
test:
# This job runs on Linux
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
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17
# index-management
- name: Checkout Branch
uses: actions/checkout@v2
Expand All @@ -31,20 +29,3 @@ jobs:
with:
name: logs
path: build/testclusters/integTest-*/logs/*
bwc:
name: Run Index Management Backwards Compatibility Tests
# This job runs on Linux
runs-on: ubuntu-latest
steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
# index-management
- name: Checkout Branch
uses: actions/checkout@v2
- name: Run IM Backwards Compatibility Tests
run: |
echo "Running backwards compatibility tests..."
./gradlew bwcTestSuite
32 changes: 32 additions & 0 deletions .github/workflows/security-test-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Security test workflow
# This workflow is triggered on pull requests to main
on:
pull_request:
branches:
- "*"
push:
branches:
- "*"

jobs:
test:
# This job runs on Linux
runs-on: ubuntu-latest
steps:
# This step uses the setup-java Github action: https://github.com/actions/setup-java
- name: Set Up JDK
uses: actions/setup-java@v1
with:
java-version: 17
# index-management
- name: Checkout Branch
uses: actions/checkout@v2
- name: Run integration tests
run: |
./gradlew integTest -Dsecurity=true -Dhttps=true
- name: Upload failed logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: logs
path: build/testclusters/integTest-*/logs/*
2 changes: 0 additions & 2 deletions .github/workflows/test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ on:

jobs:
build:
# Job name
name: Build Index Management
env:
BUILD_ARGS: ${{ matrix.os_build_args }}
WORKING_DIR: ${{ matrix.working_directory }}.
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ build/
out/
.idea/*
!.idea/copyright
.vscode
*.ipr
*.iws
.DS_Store
Expand Down
31 changes: 18 additions & 13 deletions MAINTAINERS.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
## Maintainers
| Maintainer | GitHub ID | Affiliation |
| --------------- | --------- | ----------- |
| Ashish Agrawal | [lezzago](https://github.com/lezzago) | Amazon |
| Bowen Lan | [bowenlan-amzn](https://github.com/bowenlan-amzn) | Amazon |
| Charlotte | [CEHENKLE](https://github.com/CEHENKLE) | Amazon |
| Drew Baugher | [dbbaughe](https://github.com/dbbaughe) | Amazon |
| Mohammad Qureshi | [qreshi](https://github.com/qreshi) | Amazon |
| Nick Knize | [nknize](https://github.com/nknize) | Amazon |
| Praveen Sameneni | [praveensameneni](https://github.com/praveensameneni) | Amazon |
| Ravi | [thalurur](https://github.com/thalurur) | Amazon |
| Sriram | [skkosuri-amzn](https://github.com/skkosuri-amzn) | Amazon |
## Overview

[This document](https://github.com/opensearch-project/.github/blob/main/MAINTAINERS.md) explains what maintainers do in this repo, and how they should be doing it. If you're interested in contributing, see [CONTRIBUTING](CONTRIBUTING.md).
This document contains a list of maintainers in this repo. See [opensearch-project/.github/RESPONSIBILITIES.md](https://github.com/opensearch-project/.github/blob/main/RESPONSIBILITIES.md#maintainer-responsibilities) that explains what the role of maintainer means, what maintainers do in this and other repos, and how they should be doing it. If you're interested in contributing, and becoming a maintainer, see [CONTRIBUTING](CONTRIBUTING.md).

## Current Maintainers

| Maintainer | GitHub ID | Affiliation |
| --------------------- | ----------------------------------------------------- | ----------- |
| Ashish Agrawal | [lezzago](https://github.com/lezzago) | Amazon |
| Bowen Lan | [bowenlan-amzn](https://github.com/bowenlan-amzn) | Amazon |
| Praveen Sameneni | [praveensameneni](https://github.com/praveensameneni) | Amazon |
| Saurabh Singh | [getsaurabh02](https://github.com/getsaurabh02/) | Amazon |
| Xuesong Luo | [xluo-aws](https://github.com/xluo-aws) | Amazon |
| Hailong Cui | [Hailong-am](https://github.com/Hailong-am) | Amazon |
| Binlong Gao | [gaobinlong](https://github.com/gaobinlong) | Amazon |
| Amardeepsingh Siglani | [amsiglan](https://github.com/amsiglan) | Amazon |
| Subhobrata Dey | [sbcd90](https://github.com/sbcd90) | Amazon |
| Surya Sashank Nistala | [eirsep](https://github.com/eirsep) | Amazon |
| Thomas Hurney | [AWSHurneyt](https://github.com/AWSHurneyt) | Amazon |
8 changes: 4 additions & 4 deletions build-tools/coverage.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// testing tasks don't derive from Test so the jacoco plugin can't do this automatically.
def jacocoDir = "${buildDir}/jacoco"

task dummyTest(type: Test) {
tasks.register("dummyTest", Test) {
enabled = false
workingDir = file("/") // Force absolute path to jacoco agent jar
jacoco {
Expand All @@ -31,7 +31,7 @@ task dummyTest(type: Test) {
}
}

task dummyIntegTest(type: Test) {
tasks.register("dummyIntegTest", Test) {
enabled = false
workingDir = file("/") // Force absolute path to jacoco agent jar
jacoco {
Expand All @@ -51,8 +51,8 @@ jacocoTestReport {
sourceDirectories.from = "src/main/kotlin"
classDirectories.from = sourceSets.main.output
reports {
html.enabled = true // human readable
xml.enabled = true // for coverlay
html.required = true // human readable
xml.required = true // for coverlay
}
}

Expand Down
Loading
Loading