public static void doMetaClearRebalance ( AdminClient adminClient , List < Integer > nodeIds ) { AdminToolUtils . assertServerNotInOfflineState ( adminClient , nodeIds ) ; System . out . println ( "Setting " + MetadataStore . SERVER_STATE_KEY + " to " + MetadataStore . VoldemortState . NORMAL_SERVER ) ; doMetaSet ( adminClient , nodeIds , MetadataStore . SERVER_STATE_KEY , MetadataStore . VoldemortState . NORMAL_SERVER . toString ( ) ) ; RebalancerState state = RebalancerState . create ( "[]" ) ; System . out . println ( "Cleaning up " + MetadataStore . REBALANCING_STEAL_INFO + " to " + state . toJsonString ( ) ) ; doMetaSet ( adminClient , nodeIds , MetadataStore . REBALANCING_STEAL_INFO , state . toJsonString ( ) ) ; System . out . println ( "Cleaning up " + MetadataStore . REBALANCING_SOURCE_CLUSTER_XML + " to empty string" ) ; doMetaSet ( adminClient , nodeIds , MetadataStore . REBALANCING_SOURCE_CLUSTER_XML , "" ) ; }
Removes metadata related to rebalancing .