Tarantool development patches archive
 help / color / mirror / Atom feed
From: Cyrill Gorcunov via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Serge Petrenko <sergepetrenko@tarantool.org>
Cc: tml <tarantool-patches@dev.tarantool.org>,
	Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
Subject: Re: [Tarantool-patches] [PATCH v5 2/3] test: add a test for wal_cleanup_delay option
Date: Fri, 26 Mar 2021 16:57:57 +0300	[thread overview]
Message-ID: <YF3oZXCgWsR6yLi0@grain> (raw)
In-Reply-To: <7d84bf90-7306-ad25-9f0f-74867c100fad@tarantool.org>

On Fri, Mar 26, 2021 at 04:37:26PM +0300, Serge Petrenko wrote:
> > +box.cfg({
> > +    listen              = os.getenv("LISTEN"),
> > +    replication         = os.getenv("MASTER"),
> > +})
> 
> Hi! Thanks for the fixes!
> 
> You may  use `replica.lua` here freely. It takes the same parameters, and
> has the same
> box.cfg() call, with exception that it has set `replication_timeout` and
> `memtx_memory`.
> These two options are not a problem. In fact, `replica.lua` is used in
> almost all
> replication tests.
> 
> So, there's no reason to spawn a new file for your needs.

Indeed, pushed an update.
---
diff --git a/test/replication/gh-5806-slave.lua b/test/replication/gh-5806-slave.lua
deleted file mode 100644
index 3abb3e035..000000000
--- a/test/replication/gh-5806-slave.lua
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/usr/bin/env tarantool
-
-require('console').listen(os.getenv('ADMIN'))
-
-box.cfg({
-    listen              = os.getenv("LISTEN"),
-    replication         = os.getenv("MASTER"),
-})
diff --git a/test/replication/gh-5806-xlog-cleanup.result b/test/replication/gh-5806-xlog-cleanup.result
index e20784bcc..523d400a7 100644
--- a/test/replication/gh-5806-xlog-cleanup.result
+++ b/test/replication/gh-5806-xlog-cleanup.result
@@ -64,7 +64,7 @@ test_run:switch('default')
  | - true
  | ...
 test_run:cmd('create server replica with rpl_master=master,\
-              script="replication/gh-5806-slave.lua"')
+              script="replication/replica.lua"')
  | ---
  | - true
  | ...
@@ -239,7 +239,7 @@ test_run:switch('default')
  | - true
  | ...
 test_run:cmd('create server replica with rpl_master=master,\
-              script="replication/gh-5806-slave.lua"')
+              script="replication/replica.lua"')
  | ---
  | - true
  | ...
@@ -372,7 +372,7 @@ test_run:switch('default')
  | - true
  | ...
 test_run:cmd('create server replica with rpl_master=master,\
-              script="replication/gh-5806-slave.lua"')
+              script="replication/replica.lua"')
  | ---
  | - true
  | ...
diff --git a/test/replication/gh-5806-xlog-cleanup.test.lua b/test/replication/gh-5806-xlog-cleanup.test.lua
index ea3a35294..f16be758a 100644
--- a/test/replication/gh-5806-xlog-cleanup.test.lua
+++ b/test/replication/gh-5806-xlog-cleanup.test.lua
@@ -35,7 +35,7 @@ _ = s:create_index('pk')
 
 test_run:switch('default')
 test_run:cmd('create server replica with rpl_master=master,\
-              script="replication/gh-5806-slave.lua"')
+              script="replication/replica.lua"')
 test_run:cmd('start server replica with wait=True, wait_load=True')
 
 --
@@ -118,7 +118,7 @@ _ = s:create_index('pk')
 
 test_run:switch('default')
 test_run:cmd('create server replica with rpl_master=master,\
-              script="replication/gh-5806-slave.lua"')
+              script="replication/replica.lua"')
 test_run:cmd('start server replica with wait=True, wait_load=True')
 
 test_run:switch('replica')
@@ -167,7 +167,7 @@ box.schema.user.grant('guest', 'replication')
 
 test_run:switch('default')
 test_run:cmd('create server replica with rpl_master=master,\
-              script="replication/gh-5806-slave.lua"')
+              script="replication/replica.lua"')
 test_run:cmd('start server replica with wait=True, wait_load=True')
 
 test_run:switch('master')

  reply	other threads:[~2021-03-26 13:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-26 12:06 [Tarantool-patches] [PATCH v5 0/3] gc/xlog: delay xlog cleanup until relays are subscribed Cyrill Gorcunov via Tarantool-patches
2021-03-26 12:06 ` [Tarantool-patches] [PATCH v5 1/3] " Cyrill Gorcunov via Tarantool-patches
2021-03-26 13:42   ` Serge Petrenko via Tarantool-patches
2021-03-26 19:45   ` Vladislav Shpilevoy via Tarantool-patches
2021-03-26 20:57     ` Cyrill Gorcunov via Tarantool-patches
2021-03-26 21:59     ` Cyrill Gorcunov via Tarantool-patches
2021-03-26 12:06 ` [Tarantool-patches] [PATCH v5 2/3] test: add a test for wal_cleanup_delay option Cyrill Gorcunov via Tarantool-patches
2021-03-26 13:37   ` Serge Petrenko via Tarantool-patches
2021-03-26 13:57     ` Cyrill Gorcunov via Tarantool-patches [this message]
2021-03-26 19:45   ` Vladislav Shpilevoy via Tarantool-patches
2021-03-26 12:06 ` [Tarantool-patches] [PATCH v5 3/3] test: box-tap/gc -- add test for is_paused field Cyrill Gorcunov via Tarantool-patches
2021-03-26 12:08 ` [Tarantool-patches] [PATCH v5 0/3] gc/xlog: delay xlog cleanup until relays are subscribed Cyrill Gorcunov via Tarantool-patches

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=YF3oZXCgWsR6yLi0@grain \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=gorcunov@gmail.com \
    --cc=sergepetrenko@tarantool.org \
    --cc=v.shpilevoy@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH v5 2/3] test: add a test for wal_cleanup_delay option' \
    /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