Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladimir Davydov <vdavydov.dev@gmail.com>
To: Konstantin Belyavskiy <k.belyavskiy@tarantool.org>
Cc: tarantool-patches@freelists.org
Subject: Re: [tarantool-patches] [PATCH 1/2] [replication] [recovery] recover missing data
Date: Fri, 30 Mar 2018 14:17:34 +0300	[thread overview]
Message-ID: <20180330111734.aoqaliydqbnb76ax@esperanza> (raw)
In-Reply-To: <c3c0e9cf5566c13da43cb3e028511f140e52eb1e.1522339565.git.k.belyavskiy@tarantool.org>

The subject line doesn't conform to our guidelines. Please fix.

There's no version tag in the subject prefix.

Change log is missing (should be in the cover letter in this case).

On Thu, Mar 29, 2018 at 07:15:15PM +0300, Konstantin Belyavskiy wrote:
> Part 1 of 2.

Please remove this.

> Add vclock comparison as a new synchronization condition.
> And update catch test as now it works as expected.

The comment is awful. Please improve.

> 
> Closes #3210

This patch doesn't close the issue, but it's needed for it so you should
use "Needed for" instead of "Closes".

> ---
>  branch: gh-3210-recover-missing-local-data-master-master

The branch should be given as a hyperlink to GitHub. Also, a hyperlink
to the GitHub issue you're fixing should be here as well.

Please read the guidelines carefully and follow them to the letter,
as others already do:

  https://tarantool.io/en/doc/1.9/dev_guide/developer_guidelines.html#how-to-write-a-commit-message
  https://tarantool.io/en/doc/1.9/dev_guide/developer_guidelines.html#how-to-submit-a-patch-for-review

> diff --git a/test/replication/catch.result b/test/replication/catch.result
> index 7d61ad26f..05c1c243e 100644
> --- a/test/replication/catch.result
> +++ b/test/replication/catch.result
> @@ -99,10 +99,11 @@ box.space.test ~= nil
>  ...
>  d = box.space.test:delete{1}
>  ---
> +- error: Can't modify data because this instance is in read-only mode.
>  ...
>  box.space.test:get(1) == nil
>  ---
> -- true
> +- false
>  ...
>  -- case #2: delete tuple by net.box
>  test_run:cmd("switch default")
> @@ -118,7 +119,7 @@ c = net_box.connect(r_uri)
>  ...
>  c.space.test:get(1) == nil
>  ---
> -- true
> +- false
>  ...
>  -- check sync
>  errinj.set("ERRINJ_RELAY_TIMEOUT", 0)

From replication/catch.test.lua:

> -- case #2: delete tuple by net.box
> 
> test_run:cmd("switch default")
> test_run:cmd("set variable r_uri to 'replica.listen'")
> c = net_box.connect(r_uri)
> c.space.test:get(1) == nil

But the 'delete' command mentioned in the comment is missing.
It was removed by

  commit 73cbb4a6368a7c5bb3e0176a5d7f8b25bbce3493
  Author: Ilya <markovilya197@gmail.com>
  Date:   Thu Mar 30 14:08:18 2017 +0300
  
      Fix buggy replication/catch.test.lua
  
      Fixes #2092

which was obviously wrong (the author didn't even care to fix
the comment). Now, we can resurrect the missing 'delete' command.
Actually, we can revert all changes done by this commit altogether.
Please do.

Also, now the test takes too long to complete (> 4 seconds).
This happens, because the replica disconnects from the master
by timeout, which is set to 4 times box.cfg.replication_timeout.
Please use replica_timeout.lua instead of replica.lua to speed
up the test execution time.

  reply	other threads:[~2018-03-30 11:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-29 16:15 [tarantool-patches] [PATCH 0/2] " Konstantin Belyavskiy
2018-03-29 16:15 ` [tarantool-patches] [PATCH 1/2] " Konstantin Belyavskiy
2018-03-30 11:17   ` Vladimir Davydov [this message]
2018-03-29 16:15 ` [tarantool-patches] [PATCH 2/2] " Konstantin Belyavskiy
2018-03-30 11:33   ` Vladimir Davydov

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=20180330111734.aoqaliydqbnb76ax@esperanza \
    --to=vdavydov.dev@gmail.com \
    --cc=k.belyavskiy@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='Re: [tarantool-patches] [PATCH 1/2] [replication] [recovery] recover missing data' \
    /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