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

Fix flaky test ArchivedIndexSettingsIT #9515

Merged
merged 5 commits into from
Aug 25, 2023

Conversation

ankitkala
Copy link
Member

@ankitkala ankitkala commented Aug 23, 2023

Description

For simulating an archived index setting, we create a dummy plugin with a setting and configure the setting value while creating the index. Then we add new nodes to the cluster without dummy plugin and kill the old nodes. Saw this issue transiently after the nodes restart. Adding an assertBusy to handle the transient issue.

"org.opensearch.indices.settings.ArchivedIndexSettingsIT.testArchiveSettings" -Dtests.seed=E9536E5760BDE887 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=de-LU -Dtests.timezone=Asia/Yerevan -Druntime.java=17

org.opensearch.indices.settings.ArchivedIndexSettingsIT > testArchiveSettings FAILED
    [test] IndexNotFoundException[no such index [test]]
        at __randomizedtesting.SeedInfo.seed([E9536E5760BDE887:4EB4845B78280B16]:0)
        at app//org.opensearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.indexNotFoundException(IndexNameExpressionResolver.java:1062)
        at 
.
.
.
.
app//org.opensearch.indices.settings.ArchivedIndexSettingsIT.testArchiveSettings(ArchivedIndexSettingsIT.java:52)

Related Issues

#9497

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Ankit Kala <ankikala@amazon.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@codecov
Copy link

codecov bot commented Aug 23, 2023

Codecov Report

Merging #9515 (2ce158c) into main (f5a6e6d) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #9515      +/-   ##
============================================
- Coverage     71.05%   71.03%   -0.02%     
- Complexity    57404    57425      +21     
============================================
  Files          4778     4778              
  Lines        270897   270897              
  Branches      39584    39584              
============================================
- Hits         192476   192433      -43     
- Misses        62231    62318      +87     
+ Partials      16190    16146      -44     

see 469 files with indirect coverage changes

@ankitkala ankitkala requested a review from msfroh as a code owner August 24, 2023 03:23
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

Signed-off-by: Ankit Kala <ankikala@amazon.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

Signed-off-by: Ankit Kala <ankikala@amazon.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

Signed-off-by: Ankit Kala <ankikala@amazon.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@ankitkala
Copy link
Member Author

Flaky mixedClusterTest: #9547

@shwetathareja shwetathareja merged commit 5bbac14 into opensearch-project:main Aug 25, 2023
@shwetathareja shwetathareja added the backport 2.x Backport to 2.x branch label Aug 25, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 25, 2023
* Fix flaky test ArchivedIndexSettingsIT

Signed-off-by: Ankit Kala <ankikala@amazon.com>
(cherry picked from commit 5bbac14)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dblock pushed a commit that referenced this pull request Aug 25, 2023
* Fix flaky test ArchivedIndexSettingsIT


(cherry picked from commit 5bbac14)

Signed-off-by: Ankit Kala <ankikala@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Gaganjuneja pushed a commit to Gaganjuneja/OpenSearch that referenced this pull request Aug 28, 2023
* Fix flaky test ArchivedIndexSettingsIT

Signed-off-by: Ankit Kala <ankikala@amazon.com>
Gaganjuneja pushed a commit to Gaganjuneja/OpenSearch that referenced this pull request Aug 28, 2023
* Fix flaky test ArchivedIndexSettingsIT

Signed-off-by: Ankit Kala <ankikala@amazon.com>
Signed-off-by: Gagan Juneja <gjjuneja@amazon.com>
kkmr pushed a commit to kkmr/OpenSearch that referenced this pull request Aug 28, 2023
* Fix flaky test ArchivedIndexSettingsIT

Signed-off-by: Ankit Kala <ankikala@amazon.com>
Signed-off-by: Kiran Reddy <kkreddy@amazon.com>
kaushalmahi12 pushed a commit to kaushalmahi12/OpenSearch that referenced this pull request Sep 12, 2023
* Fix flaky test ArchivedIndexSettingsIT

Signed-off-by: Ankit Kala <ankikala@amazon.com>
Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
brusic pushed a commit to brusic/OpenSearch that referenced this pull request Sep 25, 2023
* Fix flaky test ArchivedIndexSettingsIT

Signed-off-by: Ankit Kala <ankikala@amazon.com>
Signed-off-by: Ivan Brusic <ivan.brusic@flocksafety.com>
shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 2024
* Fix flaky test ArchivedIndexSettingsIT

Signed-off-by: Ankit Kala <ankikala@amazon.com>
Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants