> On Aug. 16, 2013, 8:38 p.m., Kishore Gopalakrishna wrote:
> > Instead of having these checks in different places, can we have a method 
> > that converts one mode to another in the beginning, basically have 
> > something like idealstate standardizeIdealState(idealstate) that always 
> > populates the new rebalancermode

This is accomplished in the getters and setters for both modes. Only the new 
getter is used, and if the new mode is not set then it checks the old value 
internally. Both setters will set both modes.


> On Aug. 16, 2013, 8:38 p.m., Kishore Gopalakrishna wrote:
> > helix-core/src/main/java/org/apache/helix/controller/stages/BestPossibleStateCalcStage.java,
> >  line 108
> > <https://reviews.apache.org/r/13611/diff/1/?file=341615#file341615line108>
> >
> >     why not use idealstate.getrebalancerclass, i think getRecord should 
> > also be removed from Helixproperty to restrict usage of znrecord outside of 
> > model class

Done


> On Aug. 16, 2013, 8:38 p.m., Kishore Gopalakrishna wrote:
> > helix-core/src/main/java/org/apache/helix/controller/stages/RebalanceIdealStateStage.java,
> >  line 59
> > <https://reviews.apache.org/r/13611/diff/1/?file=341616#file341616line59>
> >
> >     same as above

Done


- Kanak


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/13611/#review25258
-----------------------------------------------------------


On Aug. 16, 2013, 12:50 a.m., Kanak Biscuitwala wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/13611/
> -----------------------------------------------------------
> 
> (Updated Aug. 16, 2013, 12:50 a.m.)
> 
> 
> Review request for helix, Zhen Zhang, Kishore Gopalakrishna, and Shi Lu.
> 
> 
> Bugs: HELIX-205
> 
> 
> Repository: helix-git
> 
> 
> Description
> -------
> 
> Fix for HELIX-205. HELIX-166 introduced a new mode for user-defined 
> rebalancers, so this change starts using that mode directly. For the most 
> part, this follows most semi-auto rebalancer code paths (as it has been up 
> this point).
> 
> 
> Diffs
> -----
> 
>   
> helix-core/src/main/java/org/apache/helix/controller/stages/BestPossibleStateCalcStage.java
>  79e957c 
>   
> helix-core/src/main/java/org/apache/helix/controller/stages/RebalanceIdealStateStage.java
>  a049fef 
>   helix-core/src/main/java/org/apache/helix/manager/zk/ZKHelixAdmin.java 
> a9226d3 
>   helix-core/src/main/java/org/apache/helix/model/IdealState.java 22e2328 
>   
> helix-core/src/test/java/org/apache/helix/integration/TestCustomizedIdealStateRebalancer.java
>  1d34e5b 
> 
> Diff: https://reviews.apache.org/r/13611/diff/
> 
> 
> Testing
> -------
> 
> Tests passing locally.
> 
> 
> Thanks,
> 
> Kanak Biscuitwala
> 
>

Reply via email to