private boolean addWriteNotificationLogInBatch(Table tbl, List<WriteNotificationLogRequest> requestList)
          throws HiveException,MetaException,TException {
    long start = System. currentTimeMillis();
    boolean supported = true;
    WriteNotificationLogBatchRequest rqst = new WriteNotificationLogBatchRequest(tbl.getCatName(), tbl.getDbName(),
            tbl.getTableName(), requestList);
    try {
      get(conf).getSynchronizedMSC().addWriteNotificationLogInBatch(rqst);
    } catch (TApplicationException e) {
      int type = e.getType();
      if (type == TApplicationException.UNKNOWN_METHOD || type == TApplicationException.WRONG_METHOD_NAME) {
        // For older HMS, if the batch API is not supported, fall back to older API.
        LOG.info("addWriteNotificationLogInBatch failed with ", e);
        for (WriteNotificationLogRequest request : requestList) {
          get(conf).getSynchronizedMSC().addWriteNotificationLog(request);
        }
        supported = false;
      } else {
	// Rethrow the exception, so failures are visible. Missing a write notification can be very difficult
	// to debug otherwise.
	throw e;
      }
    }
    long end = System.currentTimeMillis();
    LOG.info("Time taken to add " + requestList.size() + " write notifications: " + ((end - start)/1000F) + " seconds");
    return supported;
  }
Given a source directory name of the load path, load all dynamically generated partitions
into the specified table and return a list of strings that represent the dynamic partition
paths.
@param tbd table descriptor
@param numLB number of buckets
@param isAcid true if this is an ACID operation
@param writeId writeId, can be 0 unless isAcid == true
@param stmtId statementId
@param resetStatistics if true, reset statistics. Do not reset statistics otherwise.
@param operation ACID operation type
@param partitionDetailsMap full dynamic partition specification
@return partition map details (PartitionSpec and Partition)
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java