-
Notifications
You must be signed in to change notification settings - Fork 229
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
[apache/helix] -- Fixed #2616, Simplified Test Code structure. #2617
[apache/helix] -- Fixed #2616, Simplified Test Code structure. #2617
Conversation
@@ -219,56 +219,9 @@ private static Method getMethod(String name) { | |||
return null; | |||
} | |||
|
|||
public static boolean verifyEmptyCurStateAndExtView(String clusterName, String resourceName, |
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.
moved to dedicated class: org/apache/helix/common/zkVerifiers/ExternalViewBalancedVerifier.java
@@ -30,7 +31,7 @@ | |||
import org.testng.Assert; | |||
import org.testng.annotations.Test; | |||
|
|||
public class TestHelixConfigAccessor extends ZkUnitTestBase { |
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.
deleted ZkUnitTestBase
class.
This is too huge to review... Suggest you break it down into multiple PRs... |
Final Commit Message: Implement the on-demand rebalance service that performs rebalancing for offline or disabled instances without respecting the delay configuration. --------- Co-authored-by: Xiaxuan Gao <[email protected]>
Instance Evacuation operation sanity check
Add on-demand rebalance API
Change instance operation orthogonal to instance enable
…ngCluster for evacuation. (apache#2618)
…o-join and auto-reg (apache#2609) Add support for setting a default InstanceConfig through HelixManagerProperty. This will allow InstanceConfig fields be able to have defaults while also allowing users to leverage autoJoin and autoRegistration.
…ocessor during auto-reg (apache#2622) Add support to persist all instance information collected by CloudInstanceInformationProcessor in CloudInstanceInformation object. Add ability for CloudInstanceInformationProcessor to produce full DOMAIN field instead of appending _instanceName unless last character in CloudInstanceInformation.CloudInstanceField.FAULT_DOMAIN is '='.
…GED. (apache#2621) Exclude on-operation instance from computing min active replica in WAGED.
Final Commit Message: Implement the on-demand rebalance service that performs rebalancing for offline or disabled instances without respecting the delay configuration. --------- Co-authored-by: Xiaxuan Gao <[email protected]>
Issues
[Testing] -- Improve Helix CI Tests Performance and Structure. #2616
Description
In order to improve the code readability and maintenance, we have created following additional classes:
With this as just a beginging, there is a lot we can do here to find such as:
We have simplified
ZKTestBase
class and a simple test has been updated with using the TestExecutionFlow:org.apache.helix.integration.TestStandAloneCMSessionExpiry#testStandAloneCMSessionExpiry
Tests
Changes that Break Backward Compatibility (Optional)
(Consider including all behavior changes for public methods or API. Also include these changes in merge description so that other developers are aware of these changes. This allows them to make relevant code changes in feature branches accounting for the new method/API behavior.)
Documentation (Optional)
(Link the GitHub wiki you added)
Commits
Code Quality
(helix-style-intellij.xml if IntelliJ IDE is used)