public static void addWriteNotificationLog(HiveConf conf, Table tbl, List<String> partitionVals,
                                             Long txnId, Long writeId, List<FileStatus> newFiles,
                                             List<WriteNotificationLogRequest> requestList)
          throws IOException, HiveException, TException {
    FileSystem fileSystem = tbl.getDataLocation().getFileSystem(conf);
    InsertEventRequestData insertData = new InsertEventRequestData();
    insertData.setReplace(true);

    WriteNotificationLogRequest rqst = new WriteNotificationLogRequest(txnId, writeId,
            tbl.getDbName(), tbl.getTableName(), insertData);
    addInsertFileInformation(newFiles, fileSystem, insertData);
    rqst.setPartitionVals(partitionVals);

    if (requestList == null) {
      get(conf).getSynchronizedMSC().addWriteNotificationLog(rqst);
    } else {
      requestList.add(rqst);
    }
  }
Returns partition metadata

@param tbl
         the partition's table
@param partSpec
         partition keys and values
@param forceCreate
         if this is true and partition doesn't exist then a partition is
         created
@param partPath the path where the partition data is located
@param inheritTableSpecs whether to copy over the table specs for if/of/serde
@return result partition object or null if there is no partition
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java