gianm opened a new pull request, #13259:
URL: https://github.com/apache/druid/pull/13259

   1) SqlTaskResource and DruidJdbcResultSet leaked statements 100% of the
      time, since they call stmt.plan(), which adds statements to
      SqlLifecycleManager, and they do not explicitly remove them.
   
   2) SqlResource leaked statements if yielder.close() threw an exception.
      (And also would not emit metrics, since in that case it failed to
      call stmt.close as well.)
   
   Item (2) has been around for a while. Item (1) is a regression in 24.0, 
introduced in #12845. That patch moved SqlLifecycleManager registration from 
SqlResource to DirectStatement, but kept _de_-registration in SqlResource only.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to