Page MenuHomePhabricator

D20617.id49185.diff
No OneTemporary

D20617.id49185.diff

diff --git a/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementDumpWorkflow.php b/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementDumpWorkflow.php
--- a/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementDumpWorkflow.php
+++ b/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementDumpWorkflow.php
@@ -285,10 +285,13 @@
$preamble = implode('', $preamble);
$this->writeData($preamble, $file, $is_compress, $output_file);
- $future = new ExecFuture('%C', $spec['command']);
+ // See T13328. The "mysql" command may produce output very quickly.
+ // Don't buffer more than a fixed amount.
+ $future = id(new ExecFuture('%C', $spec['command']))
+ ->setReadBufferSize(32 * 1024 * 1024);
$iterator = id(new FutureIterator(array($future)))
- ->setUpdateInterval(0.100);
+ ->setUpdateInterval(0.010);
foreach ($iterator as $ready) {
list($stdout, $stderr) = $future->read();
$future->discardBuffers();

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 3:01 PM (21 h, 34 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6789908
Default Alt Text
D20617.id49185.diff (1 KB)

Event Timeline