FIX: Cancel statement before closing to avoid leaking connections#2
FIX: Cancel statement before closing to avoid leaking connections#2jonasPoehler wants to merge 1 commit intomasterfrom
Conversation
When does this exactly happen? During shutdown?
Under normal conditions, the pool should never try (expect on shutdown) to close busy connections while there is still a query running. So I also think, that this recovery strategy (which sounds legit) will hide also the real error (e. g. statement/connection is put back to pool, while there is a query running). I'm happy to get more details here the next few days |
Shutdown is one situation, the other one is the heartBeat. The heartBeat has a method |
Situation: Trying to close busy connections, we first have to close the statements which have run and might currently be running over the connection. For DB2 we first have to call cancel on the statement, in order for it to actually stop and the executing thread to be notified.