private long getMinorCompactedTxnId(FileStatus[] fileStatuses) {
    for (FileStatus fileStatus : fileStatuses) {
      if (fileStatus.getPath().getName().startsWith(AcidUtils.DELTA_PREFIX)) {
        AcidUtils.ParsedDeltaLight delta = AcidUtils.ParsedDelta.parse(fileStatus.getPath());
        if (delta.getVisibilityTxnId() != 0) {
          return delta.getVisibilityTxnId();
        }
      }
    }
    return -1;
  }
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