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
Unknown Object (File)
Sun, Nov 24, 8:32 AM
Unknown Object (File)
Fri, Nov 22, 3:14 AM
Unknown Object (File)
Oct 22 2024, 5:04 PM
Unknown Object (File)
Oct 21 2024, 8:21 PM
Unknown Object (File)
Oct 16 2024, 3:31 PM
Unknown Object (File)
Oct 16 2024, 3:04 AM
Unknown Object (File)
Oct 16 2024, 3:04 AM
Unknown Object (File)
Oct 16 2024, 2:08 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.