@Test void metastorePathDepthIncorrect() { assertThatExceptionOfType(IllegalStateException.class) .isThrownBy(() -> ConsistencyCheck.checkMetastorePath( new Path("/db/snapshot/partition"), 4)); }
static void checkMetastorePath(Path path, int globDepth) { if (path.depth() != globDepth) { throw new IllegalStateException( "ABORTING: Metastore path structure looks wrong; depth != file system glob depth: '" + path + "'."); } }
ConsistencyCheck { static void checkMetastorePath(Path path, int globDepth) { if (path.depth() != globDepth) { throw new IllegalStateException( "ABORTING: Metastore path structure looks wrong; depth != file system glob depth: '" + path + "'."); } } }
ConsistencyCheck { static void checkMetastorePath(Path path, int globDepth) { if (path.depth() != globDepth) { throw new IllegalStateException( "ABORTING: Metastore path structure looks wrong; depth != file system glob depth: '" + path + "'."); } } private  ConsistencyCheck(); }
ConsistencyCheck { static void checkMetastorePath(Path path, int globDepth) { if (path.depth() != globDepth) { throw new IllegalStateException( "ABORTING: Metastore path structure looks wrong; depth != file system glob depth: '" + path + "'."); } } private  ConsistencyCheck();  }
ConsistencyCheck { static void checkMetastorePath(Path path, int globDepth) { if (path.depth() != globDepth) { throw new IllegalStateException( "ABORTING: Metastore path structure looks wrong; depth != file system glob depth: '" + path + "'."); } } private  ConsistencyCheck();   }