private FileStatus[] getDirsInPartitionLoc(WarehouseInstance wh, Partition partition)
          throws Throwable {
    Path tblLoc = new Path(partition.getSd().getLocation());
    FileSystem fs = tblLoc.getFileSystem(wh.getConf());
    return fs.listStatus(tblLoc, EximUtil.getDirectoryFilter(fs));
  }
Testcase for getting immutable dataset dump, and its corresponding repl load.
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenariosAcidTables.java