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)
Wed, Dec 18, 1:10 AM
Unknown Object (File)
Wed, Dec 18, 1:10 AM
Unknown Object (File)
Sat, Dec 14, 1:32 AM
Unknown Object (File)
Fri, Dec 13, 1:25 AM
Unknown Object (File)
Sun, Dec 8, 5:05 PM
Unknown Object (File)
Sat, Dec 7, 10:31 AM
Unknown Object (File)
Fri, Dec 6, 4:57 PM
Unknown Object (File)
Thu, Nov 28, 2:28 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.