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)
Wed, Nov 20, 4:24 AM
Unknown Object (File)
Sat, Nov 16, 1:49 AM
Unknown Object (File)
Thu, Nov 14, 6:45 AM
Unknown Object (File)
Mon, Nov 11, 7:20 PM
Unknown Object (File)
Mon, Nov 11, 2:40 AM
Unknown Object (File)
Fri, Nov 8, 1:44 PM
Unknown Object (File)
Fri, Nov 8, 9:54 AM
Unknown Object (File)
Wed, Nov 6, 12:25 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.