Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
Statement / PreparedStatement should be closed after query completes.
Below is an example of resource leak from MetaDataUtil#deleteViewIndexSequences():
public static void deleteViewIndexSequences(PhoenixConnection connection, PName name) throws SQLException { SequenceKey key = getViewIndexSequenceKey(null, name); connection.createStatement().executeUpdate("DELETE FROM " + PhoenixDatabaseMetaData.SEQUENCE_TABLE_NAME +
The Statement created by connection.createStatement() should be closed upon return.
Attachments
Attachments
Issue Links
- is related to
-
PHOENIX-1364 Close tracing scope to stop excessive tracing
- Closed