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: Wed, 24 Aug 2022 11:37:09 +0000
Message-ID: <27cb3d242a9d4b88a6f1e22ba9716441@nexign.com> (raw)
In-Reply-To: <CAFh8B=n6X6mEtiGBqA=ziQ-=QBUi0OV0=XzZZHV+s0pn3pho9Q@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>
Hi,
Yes, the *patial* from the *new leader* is restored to *last leader* and renamed to 000000020000054E000000FB, without *partial* postfix.
>>Postgres asks for file 000000020000054E000000FB but somehow gets
>>000000020000054E000000FB.partial instead. Why?
Yes, Postgres asks for 000000020000054E000000FB and gets renamed 000000020000054E000000FB.partial (without *partial* postfix).
And, finally, the *last leader* has a local 000000020000054E000000FB.partial, with the segments needed for recovery, and 000000020000054E000000FB ( renamed 000000020000054E000000FB.partial from new leader). But 000000020000054E000000FB has a higher priority than 000000020000054E000000FB.partial
Also, the *new leader* archives full 000000030000054E000000FB of the new timeline. And this file contains the same as 000000020000054E000000FB data.
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: <27cb3d242a9d4b88a6f1e22ba9716441@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>
* 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