-
Notifications
You must be signed in to change notification settings - Fork 61
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
Add Replication plugin BWC tests #257
Conversation
Signed-off-by: Ankit Kala <[email protected]>
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.
LGTM. Just one comment.
useCluster testClusters.bwcLeader0 | ||
useCluster testClusters.bwcFollower0 | ||
doFirst { | ||
testClusters.bwcLeader0.upgradeNodeAndPluginToNextVersion(replPluginProvider) | ||
testClusters.bwcFollower0.upgradeNodeAndPluginToNextVersion(replPluginProvider) | ||
getClusters().forEach { cluster -> | ||
String alltransportSocketURI = cluster.nodes.stream().flatMap { node -> | ||
node.getAllTransportPortURI().stream() | ||
}.collect(Collectors.joining(",")) | ||
String allHttpSocketURI = cluster.nodes.stream().flatMap { node -> | ||
node.getAllHttpSocketURI().stream() | ||
}.collect(Collectors.joining(",")) | ||
|
||
systemProperty "tests.cluster.${cluster.name}.http_hosts", "${-> allHttpSocketURI}" | ||
systemProperty "tests.cluster.${cluster.name}.transport_hosts", "${-> alltransportSocketURI}" | ||
systemProperty "tests.cluster.${cluster.name}.security_enabled", "${-> securityEnabled.toString()}" | ||
configureCluster(cluster, securityEnabled) | ||
} | ||
} | ||
nonInputProperties.systemProperty('tests.bwcTask', "twoThirdsUpgradedClusterTask") | ||
nonInputProperties.systemProperty('tests.cluster_suffix', "0") | ||
filter { | ||
setIncludePatterns("org.opensearch.replication.bwc.BackwardsCompatibilityIT") | ||
} |
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.
can we put this in a common function so that duplication with mixedClusterTask
and rollingUpgradeClusterTask
can be reduced ?
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.
I had tried that earlier but there were some issue with setting system properties and thus we had to duplicate the logic.
This added -SNAPSHOT binaries to the tree, which is probably not what we wanted, see #274. |
Signed-off-by: Ankit Kala [email protected]
Description
Adds Backward compatibility tests for replication plugin
Re-raised(old PR) as we recently got branch protection rule due to which i can't push more changes(without PR) in any private branch in main repo.
Task flow:
bwcLeader0
+bwcFollower0
:oldVersionClusterTask0
-->mixedClusterTask
oldVersionClusterTask0
-->mixedClusterTask
-->twoThirdsUpgradedClusterTask
-->rollingUpgradeClusterTask
bwcLeader1
+bwcFollower1
:oldVersionClusterTask1
-->fullRestartClusterTask
How to execute
./gradlew bwcTestSuite
./gradlew mixedClusterTask
./gradlew rollingUpgradeClusterTask
./gradlew fullRestartClusterTask
Issues Resolved
#116
Check List
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.