pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lahnov, Igor <Igor.Lahnov@nexign.com>
To: Alexander Kukushkin <cyberdemn@gmail.com>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Cc: Timonin, Alexey <Alexey.Timonin@nexign.com>
Cc: Dmitriyev, Andrey <Andrey.Dmitriyev@nexign.com>
Cc: Vassiliev, Andrey <Andrey.Vassiliev@nexign.com>
Subject: RE: Unable to start replica after failover
Date: Tue, 6 Sep 2022 06:46:38 +0000
Message-ID: <18b2bc57e3a3455fa01690cdd0b3efd3@nexign.com> (raw)
In-Reply-To: <CAFh8B=mPc_a_W4c7PjF4+E4E5Prb9=gq1FjAEHozvxVbMb=d-Q@mail.gmail.com>
References: <c0085e0f801d4bda9e50b46c496311b3@nexign.com>
	<20220804.173016.1842863543105077523.horikyota.ntt@gmail.com>
	<ef7bc44e10a34d54ac367a69acbee05b@nexign.com>
	<20220823.150753.1388779380039481878.horikyota.ntt@gmail.com>
	<ecfe8dcccdae4efb9262f633ad0070d6@nexign.com>
	<CAFh8B=n6X6mEtiGBqA=ziQ-=QBUi0OV0=XzZZHV+s0pn3pho9Q@mail.gmail.com>
	<27cb3d242a9d4b88a6f1e22ba9716441@nexign.com>
	<CAFh8B==MRJTyV80gN58fvhBvX18R0teB=F72c_fmQcWa8hp-zA@mail.gmail.com>
	<ebff745561b4496baa1a326a325874a6@nexign.com>
	<CAFh8B=mPc_a_W4c7PjF4+E4E5Prb9=gq1FjAEHozvxVbMb=d-Q@mail.gmail.com>

As far as I understand, according to the logs, the last leader does not yet know about the new timeline
and it is trying to download the full log from the previous timeline.
It seems there should be a conflict that the partial file already exists locally when restoring in this case, but this does not happen.
And the partial file from the new leader loaded as a full log.
What do you think it is possible to add a check to the restore command, that a partial or full file already exists?
Or is disabling the restore command a possible solution in this case?


view thread (12+ messages)  latest in thread

Message-ID: <18b2bc57e3a3455fa01690cdd0b3efd3@nexign.com>
Permalink:  ../18b2bc57e3a3455fa01690cdd0b3efd3@nexign.com/
Also on:    postgresql.org/message-id/18b2bc57e3a3455fa01690cdd0b3efd3@nexign.com

 · 

reply

Reply instructions:

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

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: Igor.Lahnov@nexign.com, cyberdemn@gmail.com, horikyota.ntt@gmail.com, Alexey.Timonin@nexign.com, Andrey.Dmitriyev@nexign.com, Andrey.Vassiliev@nexign.com
  Subject: Re: Unable to start replica after failover
  In-Reply-To: <18b2bc57e3a3455fa01690cdd0b3efd3@nexign.com>
  References: <c0085e0f801d4bda9e50b46c496311b3@nexign.com> <20220804.173016.1842863543105077523.horikyota.ntt@gmail.com> <ef7bc44e10a34d54ac367a69acbee05b@nexign.com> <20220823.150753.1388779380039481878.horikyota.ntt@gmail.com> <ecfe8dcccdae4efb9262f633ad0070d6@nexign.com> <CAFh8B=n6X6mEtiGBqA=ziQ-=QBUi0OV0=XzZZHV+s0pn3pho9Q@mail.gmail.com> <27cb3d242a9d4b88a6f1e22ba9716441@nexign.com> <CAFh8B==MRJTyV80gN58fvhBvX18R0teB=F72c_fmQcWa8hp-zA@mail.gmail.com> <ebff745561b4496baa1a326a325874a6@nexign.com> <CAFh8B=mPc_a_W4c7PjF4+E4E5Prb9=gq1FjAEHozvxVbMb=d-Q@mail.gmail.com> <18b2bc57e3a3455fa01690cdd0b3efd3@nexign.com>

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

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox