Skip to content

Commit

Permalink
Fix infinite loop on retry logic on transaction failure cmu-db#152
Browse files Browse the repository at this point in the history
  • Loading branch information
anjagruenheid authored Apr 20, 2022
1 parent 611b167 commit 930b1d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/oltpbenchmark/api/Worker.java
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,8 @@ protected final void doWork(DatabaseType databaseType, TransactionType transacti
LOG.warn(String.format("SQLException occurred during [%s] and will not be retried... sql state [%s], error code [%d].", transactionType, ex.getSQLState(), ex.getErrorCode()), ex);

status = TransactionStatus.ERROR;

break;
}

} finally {
Expand Down

0 comments on commit 930b1d0

Please sign in to comment.