-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Convert full cluster restart tests to new rest testing framework #93062
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
Merged
mark-vieira
merged 43 commits into
elastic:main
from
mark-vieira:test_containers_bwc_testing
Jan 31, 2023
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
e0340d3
Convert full cluster restart tests to new rest testing framework
mark-vieira 0f64f84
Fix NPE
mark-vieira fc6d36f
Merge branch 'main' into test_containers_bwc_testing
mark-vieira 4b77453
Wait for cluster ready
mark-vieira b6b5b6f
Avoid clashing with Object#wait
mark-vieira 6652275
Skip test when non-applicable
mark-vieira d1240a2
Disable parallel test execution temporarily
mark-vieira 45eadbb
Revert "Disable parallel test execution temporarily"
mark-vieira 21d0ed8
Reset upgrade failure status after test class
mark-vieira ae0f99c
Fix test
mark-vieira c271e6e
Remove unused import
mark-vieira b3f2966
Merge branch 'main' into test_containers_bwc_testing
mark-vieira aa8a3bc
Fixes
mark-vieira afc66a8
Warning might not always happen
mark-vieira 8cfd734
Merge branch 'main' into test_containers_bwc_testing
mark-vieira 40bf0f6
Merge branch 'main' into test_containers_bwc_testing
elasticmachine 8d4bd49
Fix compilation error
mark-vieira b8d6eaa
Avoid unnecessary restarts when testing current version
mark-vieira 42a8c56
Merge branch 'main' into test_containers_bwc_testing
elasticmachine a14906c
Review feedback
mark-vieira 7669d79
Always call deletePortsFiles when stopping a node
mark-vieira 999fefe
Spotless
mark-vieira b38ee09
Merge branch 'main' into test_containers_bwc_testing
elasticmachine b12398e
Fix some possible NPEs in strange JVM configs (#93352)
DaveCTurner b0cc642
Download the geoip databases only when needed (#92335)
masseyke 9d03b14
Add JDK 20 to Java support compatibility testing matrix
mark-vieira 180caf0
Bump bundled JDK to Java 19.0.2 (#93354)
mark-vieira de8eda4
Make `--debug-server-jvm` work with new test framework (#93355)
mark-vieira c97e56e
Fix MapperSizeClientYamlTestSuiteIT when FIPS is enabled (#93357)
mark-vieira c839c40
Add ActionListener#run (#93338)
DaveCTurner 0603827
[ML] Wait for _infer to work after restart in full cluster restart te…
davidkyle 39ba013
Unpromotables skip replication and peer recovery (#93210)
kingherc 3d38173
Add a section about token-based authentication (#93344)
mjrlgue 71c280b
Build role for remote access authentication (#93316)
n1v0lg 0e87d58
Cleanup allocation commands test (#93368)
idegtiarenko 4dd3b9a
Link to the time-units doc in S3 repository docs instead of explainin…
fcofdez 4fb06b2
Migrate misc packages to TransportVersion (#93272)
thecoop 8aa4054
Update rollup dependencies (#93369)
martijnvg 9354479
Avoiding race conditions in GeoIpDownloaderIT (#93363)
masseyke e68c258
Set forced_refresh to true when using stateless refresh work-around (…
pxsalehi 845178b
Cache the creation of parsers within `DateProcessor` (#92880)
85a3187
Add `ignore_missing_component_templates` config option (#92436)
ruflin c6a6ed4
Merge branch 'main' into test_containers_bwc_testing
mark-vieira File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...tart/src/javaRestTest/java/org/elasticsearch/upgrades/FullClusterRestartTestOrdering.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License | ||
| * 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
| * in compliance with, at your election, the Elastic License 2.0 or the Server | ||
| * Side Public License, v 1. | ||
| */ | ||
|
|
||
| package org.elasticsearch.upgrades; | ||
|
|
||
| import com.carrotsearch.randomizedtesting.TestMethodAndParams; | ||
|
|
||
| import java.util.Comparator; | ||
|
|
||
| public class FullClusterRestartTestOrdering implements Comparator<TestMethodAndParams> { | ||
| @Override | ||
| public int compare(TestMethodAndParams o1, TestMethodAndParams o2) { | ||
| return Integer.compare(getOrdinal(o1), getOrdinal(o2)); | ||
| } | ||
|
|
||
| private int getOrdinal(TestMethodAndParams t) { | ||
| return ((FullClusterRestartUpgradeStatus) t.getInstanceArguments().get(0)).ordinal(); | ||
| } | ||
| } |
14 changes: 14 additions & 0 deletions
14
...art/src/javaRestTest/java/org/elasticsearch/upgrades/FullClusterRestartUpgradeStatus.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License | ||
| * 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
| * in compliance with, at your election, the Elastic License 2.0 or the Server | ||
| * Side Public License, v 1. | ||
| */ | ||
|
|
||
| package org.elasticsearch.upgrades; | ||
|
|
||
| public enum FullClusterRestartUpgradeStatus { | ||
| OLD, | ||
| UPGRADED | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this additional version dep be added explicitly for the tests that need it? I'm wondering if we will always want this, and it seems sneeky, it would be easier to see both calls to usesBwcDistribution explicitly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no BWC test that I'm aware of against earlier versions that would not require an upgrade to 7.17 first.