DBZ-7951 Call commit after running DDL statements
PostgreSQL does not auto-commit DDL statements so, currently, other clients trying to execute DDL statements might get stuck until commit is invoked in storeRecord for instance.
This commit is contained in:
parent
4c3781a22f
commit
06f319d221
@ -413,6 +413,7 @@ Peter Junos
|
||||
Peter Larsson
|
||||
Peter Urbanetz
|
||||
Philip Sanetra
|
||||
Piotr Piastucki
|
||||
Plugaru Tudor
|
||||
Poonam Meghnani
|
||||
Pradeep Mamillapalli
|
||||
|
@ -263,6 +263,7 @@ public void initializeStorage() {
|
||||
ps.execute();
|
||||
LOG.info("Created table in given database...");
|
||||
}
|
||||
conn.commit();
|
||||
}
|
||||
}, "initialize storage", false);
|
||||
}
|
||||
|
@ -105,6 +105,7 @@ private void initializeTable() throws SQLException {
|
||||
try (var ps = conn.prepareStatement(config.getTableCreate())) {
|
||||
ps.execute();
|
||||
}
|
||||
conn.commit();
|
||||
}, "checking / creating table", false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user