Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14094265
D20617.id49185.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D20617.id49185.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D20617: Limit the read buffer size in `bin/storage dump`
Attached
Detach File
Event Timeline
Log In to Comment