zpinto opened a new pull request, #2712:
URL: https://github.com/apache/helix/pull/2712

   ### Issues
   
   - [x] Change all rebalancer strategies to create Topology without additional 
non-FaultZone or EndNode levels of the tree. This will allow for swap to work 
in clusters where the non-FaultZone or EndNode domain kv pairs don't directly 
match the swapping node. #2662
   
   ### Description
   
   - [x] When attempting to use Swap in clusters that had more complex 
topologies with levels that were not fault zone or end node, it was discovered 
that Swap assignment was being computed correctly. This is because the levels 
and all nodes in the Topology tree affect the assignment in CRUSH and CRUSHED. 
This changes the behavior of those rebalancer strategies to only create levels 
in the Topology tree for FaultZone and EndNode. This is the only thing required 
as the topology aware placement should only be done based on FaultZone.
   
   ### Tests
   
   - [x] Updated TestInstanceOperation to reproduce issues seen in testing on 
production like cluster. After topology changes, those tests pass.
   
   ### Changes that Break Backward Compatibility (Optional)
   
   Changes to Topology class are not backwards compatible; however, the 
rebalancer will have different behavior and  produce new assignment for 
existing clusters using more than a 2-layer topology. This constitutes bumping 
minor version and calling out in release notes in next open source release.
   
   ### Documentation (Optional)
   
   ### Commits
   
   - My commits all reference appropriate Apache Helix GitHub issues in their 
subject lines. In addition, my commits follow the guidelines from "[How to 
write a good git commit message](http://chris.beams.io/posts/git-commit/)":
     1. Subject is separated from body by a blank line
     1. Subject is limited to 50 characters (not including Jira issue reference)
     1. Subject does not end with a period
     1. Subject uses the imperative mood ("add", not "adding")
     1. Body wraps at 72 characters
     1. Body explains "what" and "why", not "how"
   
   ### Code Quality
   
   - My diff has been formatted using helix-style.xml 
   (helix-style-intellij.xml if IntelliJ IDE is used)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to