Re: Postgres abort found in 9.3.11

Поиск
Список
Период
Сортировка
От K S, Sandhya (Nokia - IN/Bangalore)
Тема Re: Postgres abort found in 9.3.11
Дата
Msg-id DB5PR07MB15417E9E0815B2E29231352ED6F00@DB5PR07MB1541.eurprd07.prod.outlook.com
обсуждение исходный текст
Ответ на Re: Postgres abort found in 9.3.11  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Postgres abort found in 9.3.11  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hello,

We tried to replicate the scenario without our patch(exiting postmaster) and still we were able to see the issue.

Same error was seen this time as well.
node-0 postgres[8243]: [1-2] HINT:  Is another postmaster already running on port 5433? If not, wait a few seconds and
retry.  
node-1 postgres[8650]: [18-1] PANIC:  btree_xlog_delete_get_latestRemovedXid: cannot operate with inconsistent data

Crash was not seen in 9.3.9 without the patch but it was reproduced in 9.3.11.
So something specifically changed between 9.3.9 and 9.3.11 is causing the issue.

Thanks in advance!!!

Sandhya

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Tuesday, September 06, 2016 5:04 PM
To: K S, Sandhya (Nokia - IN/Bangalore) <sandhya.k_s@nokia.com>
Cc: pgsql-hackers@postgresql.org; Itnal, Prakash (Nokia - IN/Bangalore) <prakash.itnal@nokia.com>
Subject: Re: [HACKERS] Postgres abort found in 9.3.11

"K S, Sandhya (Nokia - IN/Bangalore)" <sandhya.k_s@nokia.com> writes:
> I was able to find a patch file where there is a call to ExitPostmaster() in postmaster.c .

> @@ -3081,6 +3081,11 @@
>         shmem_exit(1);
>         reset_shared(PostPortNumber);
> +       /* recovery termination */
> +       ereport(FATAL,
> +           (errmsg("recovery termination due to process crash")));
> +       ExitPostmaster(99);
> +
>         StartupPID = StartupDataBase();
>         Assert(StartupPID != 0);
>         pmState = PM_STARTUP;

There's no such code in the community sources, and I can't say that
such a patch looks like a bright idea to me.  It would disable any
restart after a crash (not only during recovery).

If you're running a version with assorted random non-community patches,
we can't really offer much support for that.
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: Tuplesort merge pre-reading
Следующее
От: Marco Pfatschbacher
Дата:
Сообщение: PATCH: Keep one postmaster monitoring pipe per process