Page MenuHomePhabricator

Never return external connections to the GlobalLock connection pool
ClosedPublic

Authored by epriestley on Mar 2 2021, 9:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 8:12 AM
Unknown Object (File)
Jan 10 2024, 5:41 PM
Unknown Object (File)
Jan 9 2024, 8:59 AM
Unknown Object (File)
Jan 5 2024, 1:15 PM
Unknown Object (File)
Dec 30 2023, 8:23 PM
Unknown Object (File)
Dec 30 2023, 4:48 PM
Unknown Object (File)
Dec 27 2023, 10:39 PM
Unknown Object (File)
Dec 26 2023, 8:02 PM
Subscribers
None

Details

Summary

Ref T13627. If a lock fails, the connection may be returned to the pool, even if the connection is an external connection. Under old versions of MySQL, connection reuse can release other locks on the same connection.

Don't return external connections to the pool.

This issue was introduced in D21369.

Test Plan

Added a failing test and made it pass.

Diff Detail

Repository
rP Phabricator
Branch
lock4
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25192
Build 34769: Run Core Tests
Build 34768: arc lint + arc unit

Event Timeline

epriestley retitled this revision from Never return external locks to the GlobalLock connection pool to Never return external connections to the GlobalLock connection pool.Mar 2 2021, 9:38 PM
epriestley edited the summary of this revision. (Show Details)
This revision was not accepted when it landed; it landed in state Needs Review.Mar 2 2021, 9:44 PM
This revision was automatically updated to reflect the committed changes.