Page MenuHomePhabricator

Read lock all transaction edits
ClosedPublic

Authored by epriestley on Feb 11 2018, 2:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 11, 1:53 PM
Unknown Object (File)
Oct 21 2024, 12:03 PM
Unknown Object (File)
Oct 18 2024, 8:35 PM
Unknown Object (File)
Oct 9 2024, 8:49 AM
Unknown Object (File)
Oct 1 2024, 11:38 PM
Unknown Object (File)
Sep 9 2024, 10:55 PM
Unknown Object (File)
Sep 6 2024, 2:17 AM
Unknown Object (File)
Sep 6 2024, 2:17 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.