Page MenuHomePhabricator

Allow diffusion.filecontentquery to load data for arbitrarily large files
ClosedPublic

Authored by epriestley on Jan 21 2016, 5:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 29, 1:41 PM
Unknown Object (File)
Wed, Apr 24, 9:53 PM
Unknown Object (File)
Sun, Apr 21, 3:48 PM
Unknown Object (File)
Wed, Apr 17, 2:43 PM
Unknown Object (File)
Thu, Apr 11, 7:03 AM
Unknown Object (File)
Tue, Apr 9, 8:09 PM
Unknown Object (File)
Sun, Apr 7, 10:30 PM
Unknown Object (File)
Apr 1 2024, 1:56 AM
Subscribers
None

Details

Summary

Fixes T10186. After D14970, diffusion.filecontentquery puts the content in a file and returns the file PHID.

However, it does this in a way that doesn't go through the chunking engine, so it will fail for files larger than the chunk threshold (generally, 8MB).

Instead, stream the file from the underlying command directly into chunked storage.

Test Plan

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Allow diffusion.filecontentquery to load data for arbitrarily large files.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.

I also tried to make the table on ApplicationsFilesConfigure a little more clear and less technical, since it currently looks like only 8MB files are supported even when a chunk engine is configured. It now just shows "Limit: Unlimited" for the chunk engine:

Screen Shot 2016-01-21 at 9.45.30 AM.png (251×1 px, 40 KB)

chad edited edge metadata.
This revision is now accepted and ready to land.Jan 21 2016, 5:47 PM
This revision was automatically updated to reflect the committed changes.