/** * Executes the upgrade process. It involves: * <ul> * <li> Upgrading Namespace * <li> Upgrading Znodes * <li> Log splitting * </ul> * @throws Exception */ private int executeUpgrade() throws Exception { executeTool("Namespace upgrade", new NamespaceUpgrade(), new String[] { "--upgrade" }, 0); executeTool("Znode upgrade", new ZKDataMigrator(), null, 0); doOfflineLogSplitting(); return 0; }