@Override
  public void markCompacted(CompactionInfoStruct cr) throws TException {
    client.mark_compacted(cr);
  }
This method is called to get the ValidWriteIdList in order to send the same in HMS get_* APIs,
if the validWriteIdList is not explicitly passed (as a method argument) to the HMS APIs.
This method returns the ValidWriteIdList based on the VALID_TABLES_WRITEIDS_KEY key.
Since, VALID_TABLES_WRITEIDS_KEY is set during the lock acquisition phase after query compilation
( DriverTxnHandler.acquireLocks -&gt; recordValidWriteIds -&gt; setValidWriteIds ),
this only covers a subset of cases, where we invoke get_* APIs after query compilation,
if the validWriteIdList is not explicitly passed (as a method argument) to the HMS APIs.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java