mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-12 01:11:41 +00:00
fix(metadata-io): set ebean transaction level to be repeatable read (#3285)
This commit is contained in:
parent
23c6eb5d1c
commit
eb693684f2
@ -24,6 +24,7 @@ import io.ebean.Query;
|
|||||||
import io.ebean.RawSql;
|
import io.ebean.RawSql;
|
||||||
import io.ebean.RawSqlBuilder;
|
import io.ebean.RawSqlBuilder;
|
||||||
import io.ebean.Transaction;
|
import io.ebean.Transaction;
|
||||||
|
import io.ebean.annotation.TxIsolation;
|
||||||
import io.ebean.config.ServerConfig;
|
import io.ebean.config.ServerConfig;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
@ -471,7 +472,7 @@ public class EbeanAspectDao {
|
|||||||
|
|
||||||
T result = null;
|
T result = null;
|
||||||
do {
|
do {
|
||||||
try (Transaction transaction = _server.beginTransaction()) {
|
try (Transaction transaction = _server.beginTransaction(TxIsolation.REPEATABLE_READ)) {
|
||||||
result = block.get();
|
result = block.get();
|
||||||
transaction.commit();
|
transaction.commit();
|
||||||
lastException = null;
|
lastException = null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user