Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15375775
D14875.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
766 B
Referenced Files
None
Subscribers
None
D14875.diff
View Options
diff --git a/src/infrastructure/testing/fixture/PhabricatorStorageFixtureScopeGuard.php b/src/infrastructure/testing/fixture/PhabricatorStorageFixtureScopeGuard.php
--- a/src/infrastructure/testing/fixture/PhabricatorStorageFixtureScopeGuard.php
+++ b/src/infrastructure/testing/fixture/PhabricatorStorageFixtureScopeGuard.php
@@ -24,6 +24,11 @@
public function destroy() {
PhabricatorLiskDAO::popStorageNamespace();
+ // NOTE: We need to close all connections before destroying the databases.
+ // If we do not, the "DROP DATABASE ..." statements may hang, waiting for
+ // our connections to close.
+ PhabricatorLiskDAO::closeAllConnections();
+
execx(
'php %s destroy --force --namespace %s',
$this->getStorageBinPath(),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 14, 12:10 AM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7637672
Default Alt Text
D14875.diff (766 B)
Attached To
Mode
D14875: Fix a possible deadlock in unit tests after an error
Attached
Detach File
Event Timeline
Log In to Comment