]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_msgr: Use send_message instead of keepalive to wakeup connection 6605/head
authorHaomai Wang <haomai@xsky.com>
Mon, 16 Nov 2015 17:17:34 +0000 (01:17 +0800)
committerHaomai Wang <haomai@xsky.com>
Mon, 16 Nov 2015 17:18:06 +0000 (01:18 +0800)
If connection is standby state and call send keepalive, we should reconnect
this connection.

Fix #13797
Signed-off-by: Haomai Wang <haomai@xsky.com>
src/test/msgr/test_msgr.cc

index eddef22c5c2ee89c6e2975cfe65eeef42f6dd91b..8829c1e54a642a641e6aff47c686e56ae07dc471 100644 (file)
@@ -552,7 +552,9 @@ TEST_P(MessengerTest, ClientStandbyTest) {
   usleep(300*1000);
   // client should be standby, so we use original connection
   {
-    conn->send_keepalive();
+    // Try send message to verify got remote reset callback
+    m = new MPing();
+    ASSERT_EQ(conn->send_message(m), 0);
     {
       Mutex::Locker l(cli_dispatcher.lock);
       while (!cli_dispatcher.got_remote_reset)