DBZ-947 Revert default isolation level after initial load

This commit is contained in:
Grzegorz Kołakowski 2019-01-24 20:44:10 +01:00 committed by Gunnar Morling
parent 430d828e86
commit c5578c055b

View File

@ -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