@Test void unvisitedPathExists() throws IOException { Path exists = new Path("/tmp"); FileSystem fs = exists.getFileSystem(new Configuration(false)); assertThatExceptionOfType(IllegalStateException.class) .isThrownBy(() -> ConsistencyCheck.checkUnvisitedPath(fs, exists)); }
static void checkUnvisitedPath(FileSystem fs, Path unvisitedMetastorePath) throws IOException { if (fs.exists(unvisitedMetastorePath)) { throw new IllegalStateException( "ABORTING: Metastore path not found in file system scan but does exist: '" + unvisitedMetastorePath + "'."); } }
ConsistencyCheck { static void checkUnvisitedPath(FileSystem fs, Path unvisitedMetastorePath) throws IOException { if (fs.exists(unvisitedMetastorePath)) { throw new IllegalStateException( "ABORTING: Metastore path not found in file system scan but does exist: '" + unvisitedMetastorePath + "'."); } } }
ConsistencyCheck { static void checkUnvisitedPath(FileSystem fs, Path unvisitedMetastorePath) throws IOException { if (fs.exists(unvisitedMetastorePath)) { throw new IllegalStateException( "ABORTING: Metastore path not found in file system scan but does exist: '" + unvisitedMetastorePath + "'."); } } private  ConsistencyCheck(); }
ConsistencyCheck { static void checkUnvisitedPath(FileSystem fs, Path unvisitedMetastorePath) throws IOException { if (fs.exists(unvisitedMetastorePath)) { throw new IllegalStateException( "ABORTING: Metastore path not found in file system scan but does exist: '" + unvisitedMetastorePath + "'."); } } private  ConsistencyCheck();  }
ConsistencyCheck { static void checkUnvisitedPath(FileSystem fs, Path unvisitedMetastorePath) throws IOException { if (fs.exists(unvisitedMetastorePath)) { throw new IllegalStateException( "ABORTING: Metastore path not found in file system scan but does exist: '" + unvisitedMetastorePath + "'."); } } private  ConsistencyCheck();   }