Re: CREATE INDEX CONCURRENTLY does not index prepared xact's data

From: Andrey Borodin <x4mmm(at)yandex-team(dot)ru>
To: Noah Misch <noah(at)leadboat(dot)com>
Cc: PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>, Michael Paquier <michael(at)paquier(dot)xyz>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Geoghegan <pg(at)bowt(dot)ie>
Subject: Re: CREATE INDEX CONCURRENTLY does not index prepared xact's data
Date: 2021-08-15 11:09:37
Message-ID: E86CBC3F-1FCF-44BF-BAD8-1301F66D8767@yandex-team.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> 15 авг. 2021 г., в 13:45, Noah Misch <noah(at)leadboat(dot)com> написал(а):
>>
>> Do you see failures with that loop? If so, can you diagnose them?
>
> See below.
I do not observe failure on my laptop, though reproduced it on a linux server.
I've fixed one bug in TwoPhaseGetXidByVXid(). Also rebased on actual master.

>
>> (So far, I've not seen a failure from the 1PC test.)
>
> I eventually did see one. Just one 1PC failure in six hours of 1PC test
> runtime, though.
I've attached a patch that reproduces the problem in 30sec on my server.

Thanks!

Best regards, Andrey Borodin.

Attachment Content-Type Size
v12-0006-Do-CIC-test-time-based-to-ensure-bug-repro.patch application/octet-stream 924 bytes
v12-0005-PoC-fix-clear-xid.patch application/octet-stream 1.0 KB
v12-0004-Fix-CREATE-INDEX-CONCURRENTLY-in-precence-of-vxi.patch application/octet-stream 8.6 KB
v12-0003-Introduce-TAP-test-for-2PC-with-CIC-behavior.patch application/octet-stream 4.2 KB
v12-0002-PoC-fix-for-race-in-RelationBuildDesc-and-relcac.patch application/octet-stream 2.2 KB
v12-0001-Introduce-TAP-test-for-CIC.patch application/octet-stream 5.5 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andres Freund 2021-08-15 13:45:47 Re: CREATE INDEX CONCURRENTLY does not index prepared xact's data
Previous Message Noah Misch 2021-08-15 08:45:35 Re: CREATE INDEX CONCURRENTLY does not index prepared xact's data