helix git commit: Added new DataSource values LIVEINSTANCES and INSTANCES and made CriteriaEvaluator support them

2017-02-08 Thread lxia
Repository: helix Updated Branches: refs/heads/helix-0.6.x 3a61f5db1 -> fe7696945 Added new DataSource values LIVEINSTANCES and INSTANCES and made CriteriaEvaluator support them Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/co

[29/38] helix git commit: Log improvement: add resource name to logs in different places.

2017-02-08 Thread lxia
Log improvement: add resource name to logs in different places. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/3f07be0f Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/3f07be0f Diff: http://git-wip-us.apache.org/repos

[30/38] helix git commit: Add more messaging metrics to participant.

2017-02-08 Thread lxia
Add more messaging metrics to participant. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/a294ab2d Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/a294ab2d Diff: http://git-wip-us.apache.org/repos/asf/helix/diff/a294a

[36/38] helix git commit: Fix a bug in BestPossibleExternalViewVerifier.

2017-02-08 Thread lxia
Fix a bug in BestPossibleExternalViewVerifier. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/df215edb Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/df215edb Diff: http://git-wip-us.apache.org/repos/asf/helix/diff/d

[32/38] helix git commit: Refactor/renames the instances releated methods in ClusterDataCache.

2017-02-08 Thread lxia
Refactor/renames the instances releated methods in ClusterDataCache. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/fc6009fe Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/fc6009fe Diff: http://git-wip-us.apache.org/

[28/38] helix git commit: New DelayedAutoRebalancer featured with delayed partition movements during rebalancing.

2017-02-08 Thread lxia
New DelayedAutoRebalancer featured with delayed partition movements during rebalancing. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/b0d11228 Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/b0d11228 Diff: http://gi

[16/38] helix git commit: Persist session change history with timestamp for each participant.

2017-02-08 Thread lxia
Persist session change history with timestamp for each participant. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/8b320514 Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/8b320514 Diff: http://git-wip-us.apache.org/r

[25/38] helix git commit: Add a messaging monitoring mbean to ParticipantStatusMonitor object.

2017-02-08 Thread lxia
Add a messaging monitoring mbean to ParticipantStatusMonitor object. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/092b73a7 Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/092b73a7 Diff: http://git-wip-us.apache.org/

[23/38] helix git commit: Rename ParticipantMonitor class

2017-02-08 Thread lxia
Rename ParticipantMonitor class Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/6a375071 Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/6a375071 Diff: http://git-wip-us.apache.org/repos/asf/helix/diff/6a375071 Branch

[38/38] helix git commit: Avoid moving partitions unnecessarily when auto-rebalancing using default AutoRebalanceStrategy.

2017-02-08 Thread lxia
Avoid moving partitions unnecessarily when auto-rebalancing using default AutoRebalanceStrategy. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/3a61f5db Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/3a61f5db Diff:

[22/38] helix git commit: Revert "add a mbean for participant and emit received msgs"

2017-02-08 Thread lxia
Revert "add a mbean for participant and emit received msgs" This reverts commit ccff605eb311072644f355686853351a10ff5b95. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/7245d19d Tree: http://git-wip-us.apache.org/repos/asf/h

[21/38] helix git commit: Persist participant's offline timestamp in ParticipantHistory.

2017-02-08 Thread lxia
Persist participant's offline timestamp in ParticipantHistory. This is to persist the timestamp when a participant is going offline. 1) If a participant goes offlien gracefully (by calling disconnect()), participant will write a timestamp to its history record. 2) If a participant goes offline wi

[33/38] helix git commit: Persist the timestamp along with controller leader change history.

2017-02-08 Thread lxia
Persist the timestamp along with controller leader change history. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/ac74e1d3 Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/ac74e1d3 Diff: http://git-wip-us.apache.org/re

[31/38] helix git commit: Add cluster-level and resource-level config option to allow disable delayed rebalance of entire cluster or individual resource.

2017-02-08 Thread lxia
Add cluster-level and resource-level config option to allow disable delayed rebalance of entire cluster or individual resource. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/c5e12b1e Tree: http://git-wip-us.apache.org/repos

[13/38] helix git commit: participant syncs session id to controller

2017-02-08 Thread lxia
participant syncs session id to controller Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/2981bbd1 Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/2981bbd1 Diff: http://git-wip-us.apache.org/repos/asf/helix/diff/2981b

[34/38] helix git commit: Persist controller leader change history with timestamp for each leader controller.

2017-02-08 Thread lxia
Persist controller leader change history with timestamp for each leader controller. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/998a7bd0 Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/998a7bd0 Diff: http://git-wi

[15/38] helix git commit: Add a mbean for participant and emit received msgs

2017-02-08 Thread lxia
Add a mbean for participant and emit received msgs Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/821fd04d Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/821fd04d Diff: http://git-wip-us.apache.org/repos/asf/helix/di

[24/38] helix git commit: More refactors on rebalancer releated pipelines. 1) Move get rebalancer and mappingCalculator logics out to separate methods to make the main flow clearer. 2) Move definition

2017-02-08 Thread lxia
More refactors on rebalancer releated pipelines. 1) Move get rebalancer and mappingCalculator logics out to separate methods to make the main flow clearer. 2) Move definition of ANY_LIVEINSTANCE from HelixConstants to IdealState. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit

[37/38] helix git commit: Fix bug in AutoRebalanceStrategy to try to assign orphan replicas to its preferred nodes instead of random nodes.`

2017-02-08 Thread lxia
Fix bug in AutoRebalanceStrategy to try to assign orphan replicas to its preferred nodes instead of random nodes.` Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/45d76a2a Tree: http://git-wip-us.apache.org/repos/asf/helix/tr

[20/38] helix git commit: Refactor: add AbstractRebalancer as an abstract class, which contains the default implementations as well as utility functions that will be used by all specific rebalancers.

2017-02-08 Thread lxia
Refactor: add AbstractRebalancer as an abstract class, which contains the default implementations as well as utility functions that will be used by all specific rebalancers. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/9e

[35/38] helix git commit: Move all options from IdealState to ResourceConfig, add Bulder for building ResourceConfig, and a new RebalanceConfig to hold all rebalance options for a resource.

2017-02-08 Thread lxia
Move all options from IdealState to ResourceConfig, add Bulder for building ResourceConfig, and a new RebalanceConfig to hold all rebalance options for a resource. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/65cb3165 Tre

[26/38] helix git commit: Persist assignment map using specific format for MasterSlave resources (This is a short-term solution, we should get rid of this asap).

2017-02-08 Thread lxia
Persist assignment map using specific format for MasterSlave resources (This is a short-term solution, we should get rid of this asap). Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/8c58cf34 Tree: http://git-wip-us.apache.o

[27/38] helix git commit: New DelayedAutoRebalancer featured with delayed partition movements during rebalancing.

2017-02-08 Thread lxia
http://git-wip-us.apache.org/repos/asf/helix/blob/b0d11228/helix-core/src/test/java/org/apache/helix/integration/TestRebalancerPersistAssignments.java -- diff --git a/helix-core/src/test/java/org/apache/helix/integration/TestRebal

[07/38] helix git commit: Refactor: put all cluster verifiers into a sub-module of tools.

2017-02-08 Thread lxia
http://git-wip-us.apache.org/repos/asf/helix/blob/695228e0/helix-core/src/main/java/org/apache/helix/tools/ClusterStateVerifier/ClusterVerifier.java -- diff --git a/helix-core/src/main/java/org/apache/helix/tools/ClusterStateVerif

[19/38] helix git commit: Refactor: add AbstractRebalancer as an abstract class, which contains the default implementations as well as utility functions that will be used by all specific rebalancers.

2017-02-08 Thread lxia
http://git-wip-us.apache.org/repos/asf/helix/blob/9e8ec454/helix-core/src/test/java/org/apache/helix/controller/strategy/TestAutoRebalanceStrategy.java -- diff --git a/helix-core/src/test/java/org/apache/helix/controller/strategy/

[18/38] helix git commit: Add reset() method to MockParticipantManager to allow reuse of the participant.

2017-02-08 Thread lxia
Add reset() method to MockParticipantManager to allow reuse of the participant. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/24d7700c Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/24d7700c Diff: http://git-wip-us.

[10/38] helix git commit: Add StrictMatchExternalViewVerifier that verifies whether the ExternalViews of given resources (or all resources in the cluster) match exactly as its ideal mapping (in ideals

2017-02-08 Thread lxia
Add StrictMatchExternalViewVerifier that verifies whether the ExternalViews of given resources (or all resources in the cluster) match exactly as its ideal mapping (in idealstate). Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/co

[04/38] helix git commit: Add option to allow persisting best possible partition assignment in IdealState for semi-auto and full-auto modes.

2017-02-08 Thread lxia
Add option to allow persisting best possible partition assignment in IdealState for semi-auto and full-auto modes. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/7d0885c7 Tree: http://git-wip-us.apache.org/repos/asf/helix/tr

[08/38] helix git commit: Refactor: put all cluster verifiers into a sub-module of tools.

2017-02-08 Thread lxia
Refactor: put all cluster verifiers into a sub-module of tools. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/695228e0 Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/695228e0 Diff: http://git-wip-us.apache.org/repos

[17/38] helix git commit: Refactor: rename ParticipantManagerHelper to ParticipantManager and move all logic to handle new participant session into the ParticipangManager.

2017-02-08 Thread lxia
Refactor: rename ParticipantManagerHelper to ParticipantManager and move all logic to handle new participant session into the ParticipangManager. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/abecf2fe Tree: http://git-wip-u

[01/38] helix git commit: Minor fix: Do not set MaxPartitionPerNode in IdealState if it is not greater than 0.

2017-02-08 Thread lxia
Repository: helix Updated Branches: refs/heads/helix-0.6.x 5ee5e59ba -> 3a61f5db1 Minor fix: Do not set MaxPartitionPerNode in IdealState if it is not greater than 0. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/68e2fd

[14/38] helix git commit: Add logs for session sync messages

2017-02-08 Thread lxia
Add logs for session sync messages Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/a1278e19 Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/a1278e19 Diff: http://git-wip-us.apache.org/repos/asf/helix/diff/a1278e19 Bra

[11/38] helix git commit: Add support for flexible hirerachy representation of a cluster topology.

2017-02-08 Thread lxia
Add support for flexible hirerachy representation of a cluster topology. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/215039b3 Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/215039b3 Diff: http://git-wip-us.apache.

[06/38] helix git commit: Refactor: put all cluster verifiers into a sub-module of tools.

2017-02-08 Thread lxia
http://git-wip-us.apache.org/repos/asf/helix/blob/695228e0/helix-core/src/test/java/org/apache/helix/integration/ZkStandAloneCMTestBase.java -- diff --git a/helix-core/src/test/java/org/apache/helix/integration/ZkStandAloneCMTestB

[03/38] helix git commit: Deprecated AutoModeISBuilder and AutoRebalanceModeIsBuilder and created SemiAutoISBuilder and FullAutoISBuilder instead.

2017-02-08 Thread lxia
Deprecated AutoModeISBuilder and AutoRebalanceModeIsBuilder and created SemiAutoISBuilder and FullAutoISBuilder instead. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/f1e91887 Tree: http://git-wip-us.apache.org/repos/asf/he

[09/38] helix git commit: Restructure ClusterVerifiers. Add HelixClusterVerifier interface, add abstract class ZkHelixClusterVerifier, and a BestPossibleExternViewVerifier implementation.

2017-02-08 Thread lxia
Restructure ClusterVerifiers. Add HelixClusterVerifier interface, add abstract class ZkHelixClusterVerifier, and a BestPossibleExternViewVerifier implementation. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/04495e70 Tree:

[05/38] helix git commit: Add Multi-round CRUSH rebalance strategy.

2017-02-08 Thread lxia
Add Multi-round CRUSH rebalance strategy. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/0f7c3e42 Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/0f7c3e42 Diff: http://git-wip-us.apache.org/repos/asf/helix/diff/0f7c3e

[12/38] helix git commit: Fix BestPossibleExternalViewVerifier toString NPE

2017-02-08 Thread lxia
Fix BestPossibleExternalViewVerifier toString NPE Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/9bf4437a Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/9bf4437a Diff: http://git-wip-us.apache.org/repos/asf/helix/dif

[02/38] helix git commit: Support of client's customized threadpool for state-transition message handling.

2017-02-08 Thread lxia
Support of client's customized threadpool for state-transition message handling. Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/eb333702 Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/eb333702 Diff: http://git-wip-us