sapling/eden/fs/store
Wez Furlong 65be9676eb fix for falling back to flat manifest import
Summary:
akushner reported this error situation with full details in this paste:

{P58193090}

(see also comments on the paste which include the edenfs.log)

Summarizing here, what appears to be happening is that there is a local commit
for which there is no local tree manifest data.  We try to load this from the
local treepacks and fail, so we fall back to asking the server, which fails.

In this case we want to fall back to performing a flat manifest import but
since the error is a generic runtime_error it doesn't get caught by the
code that decides to fallback on line 639.

Let's assume that an error reading the chunk header for the prefetchtrees
request is really a MissingKeyError so that we can attempt the fallback.

Reviewed By: simpkins

Differential Revision: D5898439

fbshipit-source-id: ea4f3f3ef22ee72c888c592a93c5c8b9269f39b0
2017-09-29 11:43:17 -07:00
..
git Remove no-longer-needed @manual for rocksdb 2017-09-01 19:31:46 -07:00
hg fix for falling back to flat manifest import 2017-09-29 11:43:17 -07:00
test move LocalStore::PutXXX methods to a LocalStore::WriteBatch class 2017-09-28 20:53:40 -07:00
BackingStore.h update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
BlobMetadata.h update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
EmptyBackingStore.cpp update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
EmptyBackingStore.h apply clang-tidy modernize-use-override 2017-05-23 16:10:26 -07:00
IObjectStore.h drop Future from the name of ObjectStore APIs 2017-06-21 17:20:50 -07:00
LocalStore.cpp whoops: make sure we clear a batch during flush 2017-09-28 22:06:15 -07:00
LocalStore.h move LocalStore::PutXXX methods to a LocalStore::WriteBatch class 2017-09-28 20:53:40 -07:00
ObjectStore.cpp update logging statements to use folly logging APIs 2017-06-22 13:50:13 -07:00
ObjectStore.h drop Future from the name of ObjectStore APIs 2017-06-21 17:20:50 -07:00
StoreResult.cpp update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
StoreResult.h update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
TARGETS allow specifying --config options to hg_import_helper.py 2017-08-02 17:07:19 -07:00