pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal.
5+ messages / 4 participants
[nested] [flat]
* BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal.
@ 2015-04-17 03:58 digoal@126.com
2015-04-17 13:49 ` Re: BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal. Heikki Linnakangas <hlinnaka@iki.fi>
0 siblings, 1 reply; 5+ messages in thread
From: digoal@126.com @ 2015-04-17 03:58 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 13077
Logged by: digoal
Email address: digoal@126.com
PostgreSQL version: 9.4.1
Operating system: CentOS 6.x x64
Description:
HI,
I have one primary A,one standby B,another standby C receive wal from
upstream standby B.
all it's normal work and all standby catched up to A, But when the last
standby C crash, and then restart the standby C.
C need the a new timeline history, and the timeline history really not
exists any where, I don't promote any standby.
It's a BUG?
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal.
2015-04-17 03:58 BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal. digoal@126.com
@ 2015-04-17 13:49 ` Heikki Linnakangas <hlinnaka@iki.fi>
2015-04-18 00:39 ` Re: BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal. 德哥 <digoal@126.com>
0 siblings, 1 reply; 5+ messages in thread
From: Heikki Linnakangas @ 2015-04-17 13:49 UTC (permalink / raw)
To: digoal@126.com; pgsql-bugs
On 04/17/2015 06:58 AM, digoal@126.com wrote:
> The following bug has been logged on the website:
>
> Bug reference: 13077
> Logged by: digoal
> Email address: digoal@126.com
> PostgreSQL version: 9.4.1
> Operating system: CentOS 6.x x64
> Description:
>
> HI,
> I have one primary A,one standby B,another standby C receive wal from
> upstream standby B.
> all it's normal work and all standby catched up to A, But when the last
> standby C crash, and then restart the standby C.
> C need the a new timeline history, and the timeline history really not
> exists any where, I don't promote any standby.
> It's a BUG?
If you never promoted anything, everyone is still on timeline 1. No
timeline history files needed.
- Heikki
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal.
2015-04-17 03:58 BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal. digoal@126.com
2015-04-17 13:49 ` Re: BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal. Heikki Linnakangas <hlinnaka@iki.fi>
@ 2015-04-18 00:39 ` 德哥 <digoal@126.com>
2015-04-18 17:30 ` Re: BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal. Jeff Janes <jeff.janes@gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: 德哥 @ 2015-04-18 00:39 UTC (permalink / raw)
To: hlinnaka@iki.fi; +Cc: pgsql-bugs
but in my environment, C need the new timeline file, i can see the
restore command display about copy 0000002.history from my setted dir (NFS from remote computer) use top or ps command.
And the copy message display forever.
ps:
I restart the C compute, and NFS it's ok, recovery it's ok, and don't need the 0000002.history file.
When postgresql crashed, it need copy new history first whatever it's really need the file?
--
公益是一辈子的事,I'm Digoal,Just Do It.
At 2015-04-17 21:49:35, "Heikki Linnakangas" <hlinnaka@iki.fi> wrote:
>On 04/17/2015 06:58 AM, digoal@126.com wrote:
>> The following bug has been logged on the website:
>>
>> Bug reference: 13077
>> Logged by: digoal
>> Email address: digoal@126.com
>> PostgreSQL version: 9.4.1
>> Operating system: CentOS 6.x x64
>> Description:
>>
>> HI,
>> I have one primary A,one standby B,another standby C receive wal from
>> upstream standby B.
>> all it's normal work and all standby catched up to A, But when the last
>> standby C crash, and then restart the standby C.
>> C need the a new timeline history, and the timeline history really not
>> exists any where, I don't promote any standby.
>> It's a BUG?
>
>If you never promoted anything, everyone is still on timeline 1. No
>timeline history files needed.
>
>- Heikki
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal.
2015-04-17 03:58 BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal. digoal@126.com
2015-04-17 13:49 ` Re: BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal. Heikki Linnakangas <hlinnaka@iki.fi>
2015-04-18 00:39 ` Re: BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal. 德哥 <digoal@126.com>
@ 2015-04-18 17:30 ` Jeff Janes <jeff.janes@gmail.com>
2015-04-18 18:45 ` Re: BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal. 德哥 <digoal@126.com>
0 siblings, 1 reply; 5+ messages in thread
From: Jeff Janes @ 2015-04-18 17:30 UTC (permalink / raw)
To: 德哥 <digoal@126.com>; +Cc: hlinnaka@iki.fi; pgsql-bugs
On Fri, Apr 17, 2015 at 5:39 PM, 德哥 <digoal@126.com> wrote:
> but in my environment, C need the new timeline file, i can see the
> restore command display about copy 0000002.history from my setted dir (NFS
> from remote computer) use top or ps command.
> And the copy message display forever.
> ps:
> I restart the C compute, and NFS it's ok, recovery it's ok, and don't need
> the 0000002.history file.
>
> When postgresql crashed, it need copy new history first whatever it's
> really need the file?
>
It needs to know whether the file exists or not. Rather than asking if the
file exists, and then separately asking for a copy of it, instead it just
asks for a copy of the file and see if it gets returned an error or not.
If your restore_command hangs up forever when asked for a file that doesn't
exist, then there is something wrong with your restore command.
As explained in the documentation, "It is important for the command to
return a zero exit status only if it succeeds. The command will be asked
for file names that are not present in the archive; it must return nonzero
when so asked"
Cheers,
Jeff
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal.
2015-04-17 03:58 BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal. digoal@126.com
2015-04-17 13:49 ` Re: BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal. Heikki Linnakangas <hlinnaka@iki.fi>
2015-04-18 00:39 ` Re: BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal. 德哥 <digoal@126.com>
2015-04-18 17:30 ` Re: BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal. Jeff Janes <jeff.janes@gmail.com>
@ 2015-04-18 18:45 ` 德哥 <digoal@126.com>
0 siblings, 0 replies; 5+ messages in thread
From: 德哥 @ 2015-04-18 18:45 UTC (permalink / raw)
To: Jeff Janes <jeff.janes@gmail.com>; +Cc: hlinnaka@iki.fi; pgsql-bugs
HI,
Thanks, jeff.
I find the findNewestTimeLine() do that job.
I think this is the NFS problem, standby cann't access the NFS DIR(archive dir), so the copy command hang.
--
公益是一辈子的事,I'm Digoal,Just Do It.
在 2015-04-19 01:30:31,"Jeff Janes" <jeff.janes@gmail.com> 写道:
On Fri, Apr 17, 2015 at 5:39 PM, 德哥 <digoal@126.com> wrote:
but in my environment, C need the new timeline file, i can see the
restore command display about copy 0000002.history from my setted dir (NFS from remote computer) use top or ps command.
And the copy message display forever.
ps:
I restart the C compute, and NFS it's ok, recovery it's ok, and don't need the 0000002.history file.
When postgresql crashed, it need copy new history first whatever it's really need the file?
It needs to know whether the file exists or not. Rather than asking if the file exists, and then separately asking for a copy of it, instead it just asks for a copy of the file and see if it gets returned an error or not.
If your restore_command hangs up forever when asked for a file that doesn't exist, then there is something wrong with your restore command.
As explained in the documentation, "It is important for the command to return a zero exit status only if it succeeds. The command will be asked for file names that are not present in the archive; it must return nonzero when so asked"
Cheers,
Jeff
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2015-04-18 18:45 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-04-17 03:58 BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal. digoal@126.com
2015-04-17 13:49 ` Heikki Linnakangas <hlinnaka@iki.fi>
2015-04-18 00:39 ` 德哥 <digoal@126.com>
2015-04-18 17:30 ` Jeff Janes <jeff.janes@gmail.com>
2015-04-18 18:45 ` 德哥 <digoal@126.com>
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