final ReadOnlyTStore<ServerUtil> fate = new ReadOnlyStore<>(new ZooStore<>( context.getZooKeeperRoot() + Constants.ZFATE, context.getZooReaderWriter())); if (!(fate.list().isEmpty())) {
admin.print(new ReadOnlyStore<>(zs), zk, zkRoot + Constants.ZTABLE_LOCKS);
/** * Exit loudly if there are outstanding Fate operations. Since Fate serializes class names, we need to make sure there are no queued transactions from a * previous version before continuing an upgrade. The status of the operations is irrelevant; those in SUCCESSFUL status cause the same problem as those just * queued. * * Note that the Master should not allow write access to Fate until after all upgrade steps are complete. * * Should be called as a guard before performing any upgrade steps, after determining that an upgrade is needed. * * see ACCUMULO-2519 */ public static void abortIfFateTransactions() { try { final ReadOnlyTStore<Accumulo> fate = new ReadOnlyStore<Accumulo>(new ZooStore<Accumulo>( ZooUtil.getRoot(HdfsZooInstance.getInstance()) + Constants.ZFATE, ZooReaderWriter.getRetryingInstance())); if (!(fate.list().isEmpty())) { throw new AccumuloException("Aborting upgrade because there are outstanding FATE transactions from a previous Accumulo version. " + "Please see the README document for instructions on what to do under your previous version."); } } catch (Exception exception) { log.fatal("Problem verifying Fate readiness", exception); System.exit(1); } } }
final ReadOnlyTStore<Accumulo> fate = new ReadOnlyStore<>( new ZooStore<Accumulo>(ZooUtil.getRoot(HdfsZooInstance.getInstance()) + Constants.ZFATE, ZooReaderWriter.getInstance()));
admin.print(new ReadOnlyStore<>(zs), zk, ZooUtil.getRoot(instance) + Constants.ZTABLE_LOCKS);
admin.print(new ReadOnlyStore<Master>(zs), zk, ZooUtil.getRoot(instance) + Constants.ZTABLE_LOCKS);