*/
public static void updateHistory(HelixManager manager) {
HelixDataAccessor accessor = manager.getHelixDataAccessor();
PropertyKey.Builder keyBuilder = accessor.keyBuilder();
LeaderHistory history = accessor.getProperty(keyBuilder.controllerLeaderHistory());
if (history == null) {
history = new LeaderHistory(PropertyType.HISTORY.toString());
}
history.updateHistory(manager.getClusterName(), manager.getInstanceName());
accessor.setProperty(keyBuilder.controllerLeaderHistory(), history);
}