Page MenuHomePhabricator

Don't retry queries on connections holding global locks
ClosedPublic

Authored by epriestley on Apr 24 2016, 3:33 PM.
Tags
None
Referenced Files
F13059624: D15789.diff
Fri, Apr 19, 4:34 PM
Unknown Object (File)
Wed, Apr 17, 3:20 PM
Unknown Object (File)
Thu, Apr 11, 7:27 AM
Unknown Object (File)
Tue, Apr 9, 5:56 AM
Unknown Object (File)
Sun, Mar 31, 2:24 PM
Unknown Object (File)
Sun, Mar 31, 2:24 PM
Unknown Object (File)
Sun, Mar 31, 11:54 AM
Unknown Object (File)
Sun, Mar 31, 11:54 AM
Subscribers
None

Details

Summary

Ref T10860. Currently, if we lose a connection that is holding a MySQL global lock, we may retry the query automatically.

Instead, we should abort, just like we do if we were in the middle of a transaction. Otherwise, code may still think it has the lock and do unsafe things.

Test Plan

See next revision.

Diff Detail

Repository
rPHU libphutil
Branch
lock-count
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 11910
Build 14964: Run Core Tests
Build 14963: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Don't retry queries on connections holding global locks.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Apr 24 2016, 4:09 PM
This revision was automatically updated to reflect the committed changes.