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)
Fri, Dec 6, 5:03 AM
Unknown Object (File)
Tue, Nov 26, 11:07 AM
Unknown Object (File)
Nov 20 2024, 4:24 AM
Unknown Object (File)
Nov 16 2024, 1:49 AM
Unknown Object (File)
Nov 14 2024, 6:45 AM
Unknown Object (File)
Nov 11 2024, 7:20 PM
Unknown Object (File)
Nov 11 2024, 2:40 AM
Unknown Object (File)
Nov 8 2024, 1:44 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 25190
Build 34765: Run Core Tests
Build 34764: 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.