@Test(expected = IllegalStateException.class) public void testCanRun() { ServerUtil.ensureDataVersionCompatible(7); }
public static void ensureDataVersionCompatible(int dataVersion) { if (!(ServerConstants.CAN_RUN.contains(dataVersion))) { throw new IllegalStateException("This version of accumulo (" + Constants.VERSION + ") is not compatible with files stored using data version " + dataVersion); } }
ServerUtil { public static void ensureDataVersionCompatible(int dataVersion) { if (!(ServerConstants.CAN_RUN.contains(dataVersion))) { throw new IllegalStateException("This version of accumulo (" + Constants.VERSION + ") is not compatible with files stored using data version " + dataVersion); } } }
ServerUtil { public static void ensureDataVersionCompatible(int dataVersion) { if (!(ServerConstants.CAN_RUN.contains(dataVersion))) { throw new IllegalStateException("This version of accumulo (" + Constants.VERSION + ") is not compatible with files stored using data version " + dataVersion); } }  }
ServerUtil { public static void ensureDataVersionCompatible(int dataVersion) { if (!(ServerConstants.CAN_RUN.contains(dataVersion))) { throw new IllegalStateException("This version of accumulo (" + Constants.VERSION + ") is not compatible with files stored using data version " + dataVersion); } }  static synchronized void updateAccumuloVersion(VolumeManager fs, int oldVersion); static synchronized int getAccumuloPersistentVersion(FileSystem fs, Path path); static synchronized int getAccumuloPersistentVersion(Volume v); static synchronized int getAccumuloPersistentVersion(VolumeManager fs); static synchronized Path getAccumuloInstanceIdPath(VolumeManager fs); static void init(ServerContext context, String application); static void ensureDataVersionCompatible(int dataVersion); static boolean persistentVersionNeedsUpgrade(final int accumuloPersistentVersion); static void monitorSwappiness(AccumuloConfiguration config); static void waitForZookeeperAndHdfs(ServerContext context); static void abortIfFateTransactions(ServerContext context); }
ServerUtil { public static void ensureDataVersionCompatible(int dataVersion) { if (!(ServerConstants.CAN_RUN.contains(dataVersion))) { throw new IllegalStateException("This version of accumulo (" + Constants.VERSION + ") is not compatible with files stored using data version " + dataVersion); } }  static synchronized void updateAccumuloVersion(VolumeManager fs, int oldVersion); static synchronized int getAccumuloPersistentVersion(FileSystem fs, Path path); static synchronized int getAccumuloPersistentVersion(Volume v); static synchronized int getAccumuloPersistentVersion(VolumeManager fs); static synchronized Path getAccumuloInstanceIdPath(VolumeManager fs); static void init(ServerContext context, String application); static void ensureDataVersionCompatible(int dataVersion); static boolean persistentVersionNeedsUpgrade(final int accumuloPersistentVersion); static void monitorSwappiness(AccumuloConfiguration config); static void waitForZookeeperAndHdfs(ServerContext context); static void abortIfFateTransactions(ServerContext context);  }