@BeforeMethod public void beforeMethod() { // Ensure error has been removed accessor.removeProperty(errorNodeKey); }
private void cleanupRebalanceError() { ZKHelixDataAccessor accessor = new ZKHelixDataAccessor(CLUSTER_NAME, _baseAccessor); PropertyKey errorNodeKey = accessor.keyBuilder().controllerTaskError(RebalanceResourceFailure.name()); accessor.removeProperty(errorNodeKey); }
private void clearStatusUpdate(String clusterName, String instance, String resource, String partition) { // clear status update for error partition so verify() will not fail on old // errors ZKHelixDataAccessor accessor = new ZKHelixDataAccessor(clusterName, new ZkBaseDataAccessor<ZNRecord>(_gZkClient)); Builder keyBuilder = accessor.keyBuilder(); LiveInstance liveInstance = accessor.getProperty(keyBuilder.liveInstance(instance)); accessor.removeProperty(keyBuilder.stateTransitionStatus(instance, liveInstance.getSessionId(), resource, partition)); } // TODO: throw exception in reset()
accessor.removeProperty(keyBuilder.liveInstance("localhost_12918"));
accessor.removeProperty(keyBuilder.currentState("localhost_12918", liveInstance.getSessionId(), "TestDB0")); liveInstance = accessor.getProperty(keyBuilder.liveInstance("localhost_12919")); accessor.removeProperty( keyBuilder.currentState("localhost_12919", liveInstance.getSessionId(), "TestDB0"));
accessor.removeProperty(keyBuilder.controllerLeader()); TestHelper.dropCluster(clusterName, _gZkClient);
accessor.removeProperty(keyBuilder.controllerLeader()); TestHelper.dropCluster(clusterName, _gZkClient); LOG.info("END " + getShortClassName() + " at " + new Date(System.currentTimeMillis()));
accessor.removeProperty(keyBuilder.controllerLeader());
accessor.removeProperty(errorNodeKey);