Seastar has bugs to have events undispatched during shutdown, which will
result in memory leak and thus fail LeakSanitizer.
Notably, there is a chance to lose the the destruction task of
foreign_ptr<lw_shared_ptr<conntrack::load_balancer>> submitted by
conntrack::~handle(). See
https://github.com/scylladb/seastar/blob/
96ccbbe5262bed6d50a2392f6a77e84a490503b2/include/seastar/net/posix-stack.hh#L86-L89
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
return test_v2_protocol(v2_test_addr, v2_testpeer_addr, v2_testpeer_islocal);
}).then([] {
std::cout << "All tests succeeded" << std::endl;
+ // Seastar has bugs to have events undispatched during shutdown,
+ // which will result in memory leak and thus fail LeakSanitizer.
+ return seastar::sleep(100ms);
}).handle_exception([] (auto eptr) {
std::cout << "Test failure" << std::endl;
return seastar::make_exception_future<>(eptr);
return test_preemptive_down();
}).then([] {
logger.info("All tests succeeded");
+ // Seastar has bugs to have events undispatched during shutdown,
+ // which will result in memory leak and thus fail LeakSanitizer.
+ return seastar::sleep(100ms);
}).handle_exception([] (auto eptr) {
std::cout << "Test failure" << std::endl;
return seastar::make_exception_future<>(eptr);