private void executeBatchAndCommit() throws SQLException {
    if (currentBatchSize == 0) {
      return;
    }
    statement.executeBatch();
    numBatches++;
    connection.commit();
    statement.clearBatch();
    committedBatchSize += currentBatchSize;
    currentBatchSize = 0;
  }
Execute all the buffered sql commands in the batch.
@throws SQLException
ambry-mysql/src/main/java/com/github/ambry/mysql/BatchUpdater.java