This is an archive of the discontinued Mercurial Phabricator instance.

remotefilelog: handle truncated server cache files
ClosedPublic

Authored by mbthomas on Jul 21 2017, 9:35 AM.
Tags
None
Subscribers
None

Details

Reviewers
simonfar
Group Reviewers
Restricted Project
Commits
rFBHGX82c678e60af8: remotefilelog: handle truncated server cache files
Summary

If remotefilelog server cache files are truncated, when the server
returns these files to the client, the client will crash trying to
decompress them. Detect truncated files and treat them as cache
misses.

Test Plan

Add unit test for truncated server cache files.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mbthomas created this revision.Jul 21 2017, 9:35 AM
simonfar accepted this revision.Jul 21 2017, 10:33 AM
This revision is now accepted and ready to land.Jul 21 2017, 10:33 AM
This revision was automatically updated to reflect the committed changes.