Skip to content

Commit

Permalink
fix(metadata-io): set ebean transaction level to be repeatable read (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
xdl authored and swaroopjagadish committed Oct 7, 2021
1 parent 57043f2 commit 58ea835
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import io.ebean.RawSql;
import io.ebean.RawSqlBuilder;
import io.ebean.Transaction;
import io.ebean.annotation.TxIsolation;
import io.ebean.config.ServerConfig;
import java.net.URISyntaxException;
import java.sql.Timestamp;
Expand Down Expand Up @@ -471,7 +472,7 @@ public <T> T runInTransactionWithRetry(@Nonnull final Supplier<T> block, final i

T result = null;
do {
try (Transaction transaction = _server.beginTransaction()) {
try (Transaction transaction = _server.beginTransaction(TxIsolation.REPEATABLE_READ)) {
result = block.get();
transaction.commit();
lastException = null;
Expand Down

0 comments on commit 58ea835

Please sign in to comment.