Skip to content

Commit

Permalink
test: DbInsertMultiThread2Test.insertMultiTxOcc(): retry 40->80
Browse files Browse the repository at this point in the history
  • Loading branch information
hishidama committed Jan 23, 2024
1 parent c3c03bb commit 20c2ef9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void insertMultiTxOcc30False() throws Exception {
}

private void insertMultiTxOcc(int threadSize, boolean prepare) throws IOException, InterruptedException {
var setting = TgTmSetting.ofAlways(TgTxOption.ofOCC(), 40); // TODO リトライ無しにしたい
var setting = TgTmSetting.ofAlways(TgTxOption.ofOCC(), 80); // TODO リトライ無しにしたい
setting.getTransactionOptionSupplier().setTmOptionListener((attempt, exception, tmOption) -> {
if (attempt > 0) {
LOG.info("insertMultiTxOcc({}, {}) OCC retry {}", threadSize, prepare, attempt);
Expand Down

0 comments on commit 20c2ef9

Please sign in to comment.