Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
De-flake MultiFragmentTest::exchangeStatsOnFailure (facebookincubator…
…#11094) Summary: The test is flaky for two independent reasons: a) The producer task is writing a large payload may take more than 3sec (timeout value) to finish. The solution is decrease the payload. b) The second reason for the flakiness is a bug in ExchangeClient. ExchangeClient::close() was not correctly closing all the ExchangeSources (it keeps shared_ptr of ExchangeSource in a queue). As a result, Task::Close()-->ExchangeClient::close() doesn't cleanup the memory if there is another shared_ptr of same ExchangeClient is alive. Another ExchangeClient ptr can be alive as ExchangeClient::request() passes shared_from_this() to a future. Reviewed By: xiaoxmeng Differential Revision: D63374267
- Loading branch information