Re: pg_rewind success even though getting error 'record with incorrect prev-link'

2019-01-30 Thread Abdullah Al Maruf
> The only *error* I see is when you apparently manually kill the process. You mean walreceiver process?? 'FATAL: terminating walreceiver process due to administrator command' ? Actually, I didn't kill the receiver. It is done by postgres itself, as far as I understand. I restart this node using

Re: pg_rewind success even though getting error 'record with incorrect prev-link'

2019-01-29 Thread Abdullah Al Maruf
n Wed, Jan 30, 2019 at 7:44 AM Michael Paquier wrote: > On Tue, Jan 29, 2019 at 07:13:11PM +0600, Abdullah Al Maruf wrote: > > When I try to attach an old master with 'archiving set to on` as a new > > standby, `pg_rewind` doesn't throw any error, But, when the database > > s

pg_rewind success even though getting error 'record with incorrect prev-link'

2019-01-29 Thread Abdullah Al Maruf
When I try to attach an old master with 'archiving set to on` as a new standby, `pg_rewind` doesn't throw any error, But, when the database starts, The following error appears: ``` LOG: invalid record length at 0/B98: wanted 24, got 0 LOG: started streaming WAL from primary at 0/B00 on

Error: record with incorrect prev-link ---/--- at ---/---, when archiving is 'on'

2019-01-29 Thread Abdullah Al Maruf
Hello, I am trying to build an automated system in docker/kubernetes where a container/pod will automatically schedule itself as a Master or Standby. In short, I have 1 master nodes (0th node) and three standby nodes (1st, 2nd & 3rd node). When I make the 3rd node as master (by trigger file) and