Re: Assertion failure in syncrep.c

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: Assertion failure in syncrep.c
Дата
Msg-id 20140923055355.GQ16422@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: Assertion failure in syncrep.c  (Pavan Deolasee <pavan.deolasee@gmail.com>)
Список pgsql-hackers
Pavan,

* Pavan Deolasee (pavan.deolasee@gmail.com) wrote:
> On Mon, Sep 22, 2014 at 6:50 PM, Stephen Frost <sfrost@snowman.net> wrote:
> > I agree that it looks like there may be a race condition there- but
> > could you provide the test cases you're working with?  What kind of
> > behavior is it that's making it show up easily for you?
> >
> Nothing special really. Set up a 2-node sync replication on my Mac laptop
> and running pgbench with 10 clients triggers it. As I said, after looking
> at the code and realising that there is a race condition, I tried with with
> gdb to reproduce the race I suspect.

Well, that's a bit concerning.

> Anyways, the attached patch should trigger the race condition for a simple
> query. I'm deliberately making backend to wait to give walsender a chance
> to send outstanding WALs and then making walsender to wait so that
> assertion is triggered in the backend.

Great, thanks, I'll try and look into this tomorrow.
Stephen

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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: tick buildfarm failure
Следующее
От: Tomonari Katsumata
Дата:
Сообщение: Re: proposal: rounding up time value less than its unit.