Description
After PHOENIX-6560, we find there are also many Statement not closed...
1. org.apache.phoenix.schema.MetaDataClient
incrementStatement
linkStatement
setAsync
setSync
tableUpsert
linkStatement
incrementStatement
tableUpsert
2. org.apache.phoenix.schema.task.Task
org.apache.phoenix.schema.task.Task#populateTasks
org.apache.phoenix.schema.task.Task#executeStatementAndGetTaskMutations
3. org.apache.phoenix.jdbc.PhoenixStatement.ExecutableShowTablesStatement#compilePlan
4. org.apache.phoenix.trace.PhoenixMetricsSink
org.apache.phoenix.trace.PhoenixMetricsSink#createTable
org.apache.phoenix.trace.PhoenixMetricsSink#putMetrics
5. org.apache.phoenix.trace.TraceWriter.FlushMetrics#addToBatch
6. org.apache.phoenix.trace.TraceWriter#createTable
7. org.apache.phoenix.trace.TraceReader#readAll
8. org.apache.phoenix.mapreduce.index.automation.PhoenixMRJobSubmitter#getCandidateJobs
so may be right, i will raise a PR try to fix all
Attachments
Issue Links
- relates to
-
PHOENIX-7095 Implement Statement.closeOnCompletion() and fix related close() bugs
- Resolved
-
PHOENIX-6560 Rewrite dynamic SQL queries to use Preparedstatement
- Resolved
- links to