mirror of
https://github.com/ceph/ceph
synced 2024-12-17 17:05:42 +00:00
TestMsgr: Fix forever hang under lossless policy and one is WAIT another down
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
This commit is contained in:
parent
128f5a2504
commit
24f4d22d21
@ -983,6 +983,15 @@ class SyntheticWorkload {
|
||||
ConnectionRef conn = _get_random_connection();
|
||||
dispatcher.clear_pending(conn);
|
||||
conn->mark_down();
|
||||
pair<Messenger*, Messenger*> &p = available_connections[conn];
|
||||
// it's a lossless policy, so we need to mark down each side
|
||||
if (!p.first->get_default_policy().server && !p.second->get_default_policy().server) {
|
||||
ASSERT_EQ(conn->get_messenger(), p.first);
|
||||
ConnectionRef peer = p.second->get_connection(p.first->get_myinst());
|
||||
peer->mark_down();
|
||||
dispatcher.clear_pending(peer);
|
||||
available_connections.erase(peer);
|
||||
}
|
||||
ASSERT_EQ(available_connections.erase(conn), 1U);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user