Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.34.0
Description
current the logic of creating JdbcMeta singleton could be not safe in multi-thread occasion.
we can add double-checking.
private static JdbcMeta getInstance() { if (instance == null) { try { instance = new JdbcMeta(CalciteConnectionProvider.DRIVER_URL, CONNECTION_PROVIDER.provideConnectionInfo()); } catch (SQLException | IOException e) { throw new RuntimeException(e); } } return instance; }
Attachments
Issue Links
- links to