Skip to content

Commit 930b1d0

Browse files
Fix infinite loop on retry logic on transaction failure #152
1 parent 611b167 commit 930b1d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/oltpbenchmark/api/Worker.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,8 @@ protected final void doWork(DatabaseType databaseType, TransactionType transacti
425425
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);
426426

427427
status = TransactionStatus.ERROR;
428+
429+
break;
428430
}
429431

430432
} finally {

0 commit comments

Comments
 (0)