Properly apply client_idle_timeout to database access sessions#32485
Properly apply client_idle_timeout to database access sessions#32485
client_idle_timeout to database access sessions#32485Conversation
client_idle_timeout to database access sessions.client_idle_timeout to database access sessions
r0mant
left a comment
There was a problem hiding this comment.
Can we add test coverage?
Sure, will do. |
Could be a valid worry, although I'm not 100% certain. I think |
I believe |
@r0mant Added, PTAL. |
|
Hmm... |
|
The race above is preexisting and genuine, if benign. I'll raise a separate PR with the fix. This one will be blocked before that one lands. |
was never used, causing unjustified idle timeouts.
9b27bc6 to
b63824d
Compare
|
After changes, the test above no longer triggers the data race. Therefore, I think it is OK to merge it as is. The data race fix is pending in another PR. |
) (#32726) * Add test for auto disconnect (disconnect happens, query updates the timer). * Fix: In database service, `clientConn` returned from `MonitorConn` was never used, causing unjustified idle timeouts.
) (#32725) * Add test for auto disconnect (disconnect happens, query updates the timer). * Fix: In database service, `clientConn` returned from `MonitorConn` was never used, causing unjustified idle timeouts.
In database service,
clientConnreturned fromMonitorConnwas never used, causing unjustified idle timeouts.Fixes #32073.