sapling/eden/fs/testharness/test
Zeyi (Rice) Fan 068ff196bd eden: SemiFuture-ify BackingStore::getBlob
Summary:
This diff turns the return type of `BackingStore::getBlob` from `folly::Future` into `folly::SemiFuture` to prevent executor leaks.

This also enable us to remove the need of holding `serverThreadPool` from backing stores.

----

**Changes**

* `ObjectStore` now needs to hold a `folly::Executor::KeepAlive` that is used to turn `SemiFuture`s it gets from backing stores into `Future`.
* Signature changes of the implementations of `BackingStore` class.
* For tests, I chose to use `QueuedImmediateExecutor` in place of `UnboundedQueueExecutor` as it will basically execute tasks inline. I'm concerned introducing thread pool executor in tests may turn tests flaky.

Reviewed By: wez

Differential Revision: D18669664

fbshipit-source-id: 0cae89f365dcf8b345b49d64469a530cf25d4ac5
2019-12-20 16:14:21 -08:00
..
FakeBackingStoreTest.cpp eden: SemiFuture-ify BackingStore::getBlob 2019-12-20 16:14:21 -08:00
FakeObjectStoreTest.cpp kill ObjectStore::getBlobMetadata 2019-12-20 16:14:18 -08:00
TempFileTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
TestMountTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
TestServerTest.cpp save version number in EdenServer 2019-10-24 12:48:33 -07:00
TestUtilTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00