Skip to content

Commit

Permalink
Remove call to getTransactionIsolation as it is not needed and is thr…
Browse files Browse the repository at this point in the history
…owing an error #138

There is a call for conn.getTransactionIsolation() from tpcc code. This code gets executed only when debug logging is enabled. This call to conn.getTransactionIsolation() is throwing an exception and looks like a driver issue. This code is unimportant in tpcc and hence fixing the issue for now by removing the code.
  • Loading branch information
hbhanawat authored Apr 10, 2023
1 parent 4f2fbde commit fe07ceb
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/com/oltpbenchmark/api/Worker.java
Original file line number Diff line number Diff line change
Expand Up @@ -487,13 +487,6 @@ protected final ArrayList<Pair<TransactionExecutionState, TransactionStatus>> do
conn.setAutoCommit(false);
}

if (LOG.isDebugEnabled() && conn.getTransactionIsolation() != wrkld.getIsolationMode()) {
throw new RuntimeException(String.format(
"Unexpected connection isolation level. Expected (%s), got (%s).",
wrkld.getIsolationMode(),
conn.getTransactionIsolation()));
}

endConnection = System.nanoTime();
int attempt = 0;

Expand Down

0 comments on commit fe07ceb

Please sign in to comment.