Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
To: Konstantin Osipov <kostja@tarantool.org>
Cc: tarantool-patches@freelists.org
Subject: [tarantool-patches] Re: [PATCH v2 2/2] swim: be suspicious when add new member
Date: Thu, 4 Jul 2019 01:32:10 +0200	[thread overview]
Message-ID: <bbf76a67-87fb-1cb7-a65d-fc020b2563af@tarantool.org> (raw)
In-Reply-To: <20190703190738.GC17318@atlas>

Thanks for the review!

Since the previous commit now does not break the tests, I've
removed from this one all the test fixes, but added a new test:

> static void
> swim_test_suspect_new_members(void)
> {
> 	swim_start_test(2);
> 
> 	struct swim_cluster *cluster = swim_cluster_new(3);
> 	swim_cluster_set_ack_timeout(cluster, 1);
> 	swim_cluster_interconnect(cluster, 0, 1);
> 	swim_cluster_interconnect(cluster, 1, 2);
> 
> 	swim_cluster_set_drop(cluster, 0, 100);
> 	swim_cluster_block_io(cluster, 2);
> 	is(swim_cluster_wait_status(cluster, 1, 0, swim_member_status_MAX, 15),
> 	   0, "S2 dropped S1 as dead");
> 	swim_cluster_unblock_io(cluster, 2);
> 	swim_run_for(1);
> 	is(swim_cluster_member_status(cluster, 2, 0), swim_member_status_MAX,
> 	   "S3 didn't add S1 from S2's messages, because S1 didn't answer "\
> 	   "on a ping");
> 
> 	swim_cluster_delete(cluster);
> 
> 	swim_finish_test();
> }

  reply	other threads:[~2019-07-03 23:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-30 20:01 [tarantool-patches] [PATCH v2 0/2] SWIM log TTD, and suspicious anti-entropy Vladislav Shpilevoy
2019-06-30 20:01 ` [tarantool-patches] [PATCH v2 1/2] swim: disseminate event for log(cluster_size) steps Vladislav Shpilevoy
2019-07-03 19:06   ` [tarantool-patches] " Konstantin Osipov
2019-07-03 23:30     ` Vladislav Shpilevoy
2019-07-04  8:10       ` Konstantin Osipov
2019-06-30 20:01 ` [tarantool-patches] [PATCH v2 2/2] swim: be suspicious when add new member Vladislav Shpilevoy
2019-07-03 19:07   ` [tarantool-patches] " Konstantin Osipov
2019-07-03 23:32     ` Vladislav Shpilevoy [this message]
2019-07-04  8:10       ` Konstantin Osipov
2019-07-05 22:45 ` [tarantool-patches] Re: [PATCH v2 0/2] SWIM log TTD, and suspicious anti-entropy Vladislav Shpilevoy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bbf76a67-87fb-1cb7-a65d-fc020b2563af@tarantool.org \
    --to=v.shpilevoy@tarantool.org \
    --cc=kostja@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='[tarantool-patches] Re: [PATCH v2 2/2] swim: be suspicious when add new member' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox