Page MenuHomePhabricator

Read lock all transaction edits
ClosedPublic

Authored by epriestley on Feb 11 2018, 2:05 AM.
Tags
None
Referenced Files
F18857530: D19059.diff
Sat, Nov 1, 3:52 PM
F18855267: D19059.diff
Sat, Nov 1, 4:39 AM
F18854305: D19059.diff
Fri, Oct 31, 11:07 PM
F18851579: D19059.id45691.diff
Fri, Oct 31, 2:19 AM
F18848599: D19059.id45692.diff
Thu, Oct 30, 5:27 AM
F18847528: D19059.diff
Thu, Oct 30, 1:02 AM
F18763941: D19059.id45691.diff
Tue, Oct 7, 3:14 AM
F18670522: D19059.diff
Sep 25 2025, 12:33 AM
Subscribers
None

Details

Summary

Ref T13054. Fixes T12714. Applies read locks to all transactions instead of only a very select subset (chat messages in Conpherence).

Test Plan

See <T13054#235650> for discussion and testing.

Diff Detail

Repository
rP Phabricator
Branch
race1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 19494
Build 26373: Run Core Tests
Build 26372: arc lint + arc unit

Unit TestsFailed

TimeTest
284 msPhabricatorAuthPasswordTestCase::Unknown Unit Message ("")
Assertion failed, expected values to be equal (at PhabricatorAuthPasswordTestCase.php:160). Expected: 'bcrypt' Actual: 'md5'
442 msPhabricatorProjectCoreTestCase::Unknown Unit Message ("")
EXCEPTION (Exception): Process exited with an open transaction! The transaction will be implicitly rolled back. Calls to openTransaction() must always be paired with a call to saveTransaction() or killTransaction(). #0 /core/data/drydock/workingcopy-91/repo/phabricator/src/infrastructure/storage/lisk/LiskDAO.php(1615): AphrontDatabaseTransactionState->__destruct() #1 /core/data/drydock/workingcopy-91/repo/phabricator/src/infrastructure/storage/lisk/LiskDAO.php(1615): LiskDAO::closeAllConnections()
1 msAlmanacNamesTestCase::Unknown Unit Message ("")
30 assertions passed.
0 msAlmanacServiceTypeTestCase::Unknown Unit Message ("")
1 assertion passed.
0 msAphrontHTTPSinkTestCase::Unknown Unit Message ("")
4 assertions passed.
View Full Test Results (2 Failed · 357 Passed)

Event Timeline

  • Save password hashes after upgrade (see T13054#235670).
  • Unlock and kill transactions more consistently.
This revision was not accepted when it landed; it landed in state Needs Review.Feb 11 2018, 4:07 AM
This revision was automatically updated to reflect the committed changes.