public static EventsDumpMetadata deserialize(Path ackFile, HiveConf conf) throws HiveException {
    Retryable retryable = Retryable.builder()
            .withHiveConf(conf)
            .withRetryOnException(IOException.class).build();
    try {
      return retryable.executeCallable(() -> {
        FileSystem fs = ackFile.getFileSystem(conf);
        try (BufferedReader br = new BufferedReader(
                new InputStreamReader(fs.open(ackFile), Charset.defaultCharset()))
        ) {
          return objectMapper.readValue(br, EventsDumpMetadata.class);
        }
      });
    } catch (Exception e) {
      throw new HiveException(ErrorMsg.REPL_RETRY_EXHAUSTED.format(e.getMessage()), e);
    }
  }
This class represents the metadata related to events in repl dump.
Metadata includes,
lastReplId - the last successfully dumped eventId.
eventsDumpedCount - number of events dumped in staging directory.
eventsBatched - denotes if events are dumped in batches.
ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/EventsDumpMetadata.java