]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/crimson: add delay when stopping seastar
authorYingxin Cheng <yingxin.cheng@intel.com>
Sun, 19 Jan 2020 07:54:48 +0000 (15:54 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Wed, 12 Feb 2020 02:47:47 +0000 (10:47 +0800)
commitbc658272d35ed42e86bec31c053e769b485a8b13
tree14bbd3aab0b2e961f6971c0b7219b69996ba0f4c
parentb9e3b15c07968a2fc69698afe96fa33de4b05b0d
test/crimson: add delay when stopping seastar

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>
src/test/crimson/test_messenger.cc
src/test/crimson/test_socket.cc