public SqlRetryCallProperties withRetryOnDuplicateKey(boolean retryOnDuplicateKey) {
    this.retryOnDuplicateKey = retryOnDuplicateKey;
    return this;
  }
@param retryOnDuplicateKey Indicates if the call should be retried on duplicate key error, false otherwise. 
                           The default value is false.
@return itself
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/retry/SqlRetryCallProperties.java