@Override
  public Map<String, Map<String, String>> getProperties(String nameSpace, String mapPrefix, String mapPredicate, String... selection) throws TException {
    PropertyGetRequest request = new PropertyGetRequest();
    request.setNameSpace(nameSpace);
    request.setMapPrefix(mapPrefix);
    request.setMapPredicate(mapPredicate);
    if (selection != null && selection.length > 0) {
      request.setMapSelection(Arrays.asList(selection));
    }
    PropertyGetResponse response = client.get_properties(request);
    return response.getProperties();
  }
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