Page MenuHomePhabricator

D14875.diff
No OneTemporary

D14875.diff

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

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)

Event Timeline