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
F15445542: D21585.id51384.diff
Thu, Mar 27, 2:30 PM
F15444024: D21585.id51387.diff
Thu, Mar 27, 7:23 AM
F15441601: D21585.id51382.diff
Wed, Mar 26, 6:52 PM
F15435395: D21585.id.diff
Tue, Mar 25, 8:02 AM
F15430971: D21585.diff
Mon, Mar 24, 9:54 AM
F15427160: D21585.id51387.diff
Sun, Mar 23, 1:11 PM
F15353136: D21585.id51387.diff
Mon, Mar 10, 8:08 PM
F15333956: D21585.diff
Sat, Mar 8, 5:54 AM
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.