/** * Executes the given AZ related INSERT, UPDATE, or DELETE SQL statement. * it will call {@link AzkabanDataSource#getConnection()} inside * queryrunner.update. * * @param updateClause sql statements to execute * @param params Initialize the PreparedStatement's IN parameters * @return The number of rows updated. */ public int update(final String updateClause, final Object... params) throws SQLException { try { return this.queryRunner.update(updateClause, params); } catch (final SQLException ex) { // todo kunkun-tang: Retry logics should be implemented here. logger.error("update failed", ex); if (this.dbMetrics != null) { this.dbMetrics.markDBFailUpdate(); } throw ex; } }