DBZ-947 Revert default isolation level after initial load
This commit is contained in:
parent
430d828e86
commit
c5578c055b
@ -181,6 +181,12 @@ protected SchemaChangeEvent getCreateTableEvent(SnapshotContext snapshotContext,
|
||||
|
||||
@Override
|
||||
protected void complete() {
|
||||
try {
|
||||
// Revert to default transaction isolation level (read committed).
|
||||
jdbcConnection.connection().setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
|
||||
} catch (SQLException e) {
|
||||
throw new RuntimeException("Failed to set transaction isolation level.", e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user