Beispiel #1
0
 @VisibleForTesting
 void assertReferenceFileCount(int expectedReferenceFileCount, Path dir) throws IOException {
   if (expectedReferenceFileCount != 0
       && expectedReferenceFileCount
           != FSUtils.getRegionReferenceFileCount(parent.getFilesystem(), dir)) {
     throw new IOException("Failing split. Expected reference file count isn't equal.");
   }
 }