public boolean upsertTableEntity(String tableName, TableEntity tableEntity) {
    Throwable throwable = null;
    try {
      getTableClient(tableName).upsertEntity(tableEntity);
      return true;
    } catch (Throwable e) {
      throwable = e;
      return false;
    } finally {
      // Executed before return statement
      if (throwable != null) {
        azureMetrics.tableEntityCreateErrorCount.inc();
        logger.error("Failed to upsert table entity {}/{} in {} due to {}",
            tableEntity.getPartitionKey(), tableEntity.getRowKey(), tableName, throwable);
        throwable.printStackTrace();
      }
    }
  }
Upserts a row in Azure Table An Azure Table Entity is a row with paritionKey and rowKey

@param tableName   Name of the table in Azure Table Service
@param tableEntity Table row to insert
@return
ambry-cloud/src/main/java/com/github/ambry/cloud/azure/AzureCloudDestinationSync.java