Re: [Postgres-xc-general] "Tuple not found error" during Index creation

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [Postgres-xc-general] "Tuple not found error" during Index creation
Дата
Msg-id CAB7nPqT1q=hbL9+B-GVMwbpkmXaZw2e-onYrST6PUyBXzDN67w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: "Tuple not found error" during Index creation  (Sandeep Gupta <gupta.sandeep@gmail.com>)
Ответы Re: [Postgres-xc-general] "Tuple not found error" during Index creation
Re: [Postgres-xc-general] "Tuple not found error" during Index creation
Список pgsql-general
On Tue, Dec 10, 2013 at 7:17 AM, Sandeep Gupta <gupta.sandeep@gmail.com> wrote:
>  We are trying to trace cause and potential solution of "tuple not found"
> error with postgres-xc. The problem happens when indexing a large file. It
> seems the autovaccum locks certain cache pages that the indexer tries to
> read. The indexing fails with  "tuple not found" error.
>
> I am sure if it qualifies as postgres or postgres-xc error. However, I was
> just wondering what is the recommended way to go about fixing this. Turning
> off the autovaccumer  is really not the best of solution because then the
> system runs into memory usage error.
>
> Would greatly appreciate any pointers on this.
This smells like a concurrency issue with autovacuum on XC side. I
recall fixing in the past issues with autovacuum not taking a correct
snapshot from GTM in certain code paths, putting in danger data
consistency in the cluster as autovacuum might clean more tuples than
it should. Another possibility to explain this bug would be the way
RecentGlobalXmin is computed for autovacuum using the GTM snapshots,
which would explain why autovacuum has cleaned away some tuples it
should not have, making the possibility of a failure higher for
long-running transactions.

Those are assumptions though. It would be great if you could provide a
self-contained test case, with let's imagine a table that has its data
generated with for example generate_series. Just by seeing the spec of
the machine you are using, I am sure that i wouldn't be able to
reproduce that on my laptop though. The core team has access to more
powerful machines.

Also: Postgres-XC 1.1.0 is based on Postgres 9.2.4.
--
Michael


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

Предыдущее
От: Dmitry Koterov
Дата:
Сообщение: Replication: GZIP compression in WAL sender/receiver processes communication?
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Replication: GZIP compression in WAL sender/receiver processes communication?