From: Vladislav Shpilevoy via Tarantool-patches <tarantool-patches@dev.tarantool.org> To: Cyrill Gorcunov <gorcunov@gmail.com>, tml <tarantool-patches@dev.tarantool.org> Subject: Re: [Tarantool-patches] [PATCH v5 1/3] gc/xlog: delay xlog cleanup until relays are subscribed Date: Fri, 26 Mar 2021 20:45:29 +0100 [thread overview] Message-ID: <f7eed387-757e-7551-a414-e612cde3c2ec@tarantool.org> (raw) In-Reply-To: <20210326120605.2160131-2-gorcunov@gmail.com> Hi! Danke schön für der Patch! See 3 comments below. > diff --git a/test/replication/replica_rejoin.lua b/test/replication/replica_rejoin.lua > new file mode 100644 > index 000000000..76f6e5b75 > --- /dev/null > +++ b/test/replication/replica_rejoin.lua > @@ -0,0 +1,22 @@ > +#!/usr/bin/env tarantool > + > +local repl_include_self = arg[1] and arg[1] == 'true' or false 1. Why do you need that parameter? It is never used in the patch. > +local repl_list > + > +if repl_include_self then > + repl_list = {os.getenv("MASTER"), os.getenv("LISTEN")} > +else > + repl_list = os.getenv("MASTER") > +end > + > +-- Start the console first to allow test-run to attach even before > +-- box.cfg is finished. > +require('console').listen(os.getenv('ADMIN')) > + > +box.cfg({ > + listen = os.getenv("LISTEN"), > + replication = repl_list, > + memtx_memory = 107374182, 2. Why do you need a specific memtx memory setting? > + replication_timeout = 0.1, > + wal_cleanup_delay = 0, 3. I would better propose you to patch replica.lua so as we could pass wal_cleanup_delay parameter to it somehow. But I don't mind if you would keep your way + remove the dead code above.
next prev parent reply other threads:[~2021-03-26 19:45 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] " 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 [this message] 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 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=f7eed387-757e-7551-a414-e612cde3c2ec@tarantool.org \ --to=tarantool-patches@dev.tarantool.org \ --cc=gorcunov@gmail.com \ --cc=v.shpilevoy@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH v5 1/3] gc/xlog: delay xlog cleanup until relays are subscribed' \ /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