]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/crimson: don't send msg from lossy server
authorYingxin Cheng <yingxin.cheng@intel.com>
Wed, 11 Sep 2019 07:00:21 +0000 (15:00 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Wed, 18 Sep 2019 04:24:05 +0000 (12:24 +0800)
It is possible to lose message at server side due to lossy policy,
causing unit test blocked and waiting for lost replies.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/test/crimson/test_messenger.cc

index 6342fdee274d5204960b7677043dabea038d58ee..184d3e09c22f9f8377db0affe213da2d47f41a67 100644 (file)
@@ -1593,8 +1593,8 @@ test_v2_lossy_early_connect_fault(FailoverTest& test) {
           policy_t::lossy_client,
           policy_t::stateless_server,
           [&test] (FailoverSuite& suite) {
-        return seastar::futurize_apply([&test] {
-          return test.send_bidirectional();
+        return seastar::futurize_apply([&suite] {
+          return suite.send_peer();
         }).then([&suite] {
           return suite.connect_peer();
         }).then([&suite] {
@@ -1697,7 +1697,7 @@ test_v2_lossy_early_accept_fault(FailoverTest& test) {
           policy_t::lossy_client,
           [&test] (FailoverSuite& suite) {
         return seastar::futurize_apply([&test] {
-          return test.send_bidirectional();
+          return test.peer_send_me();
         }).then([&test] {
           return test.peer_connect_me();
         }).then([&suite] {
@@ -1733,7 +1733,7 @@ test_v2_lossy_accept_fault(FailoverTest& test) {
           policy_t::lossy_client,
           [&test] (FailoverSuite& suite) {
         return seastar::futurize_apply([&test] {
-          return test.send_bidirectional();
+          return test.peer_send_me();
         }).then([&test] {
           return test.peer_connect_me();
         }).then([&suite] {