Re: Re: [COMMITTERS] pgsql: Add some isolation tests for deadlock detection and resolution.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re: [COMMITTERS] pgsql: Add some isolation tests for deadlock detection and resolution.
Дата
Msg-id 26400.1455328772@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Re: [COMMITTERS] pgsql: Add some isolation tests for deadlock detection and resolution.  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: [COMMITTERS] pgsql: Add some isolation tests for deadlock detection and resolution.  (Greg Stark <stark@mit.edu>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Feb 12, 2016 at 4:59 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> The fundamental problem I fear is that isolationtester is designed around
>> the assumption that only its own actions (query issuances) change the
>> state of the database.  Trying to use it to test deadlock detection is
>> problematic because deadlock-breaking changes the DB state asynchronously.

> Maybe we should introduce a way to declare whether a step is expected
> to wait or not.  I thought about doing that, and the only reason I
> didn't is because I couldn't figure out a reasonable syntax.  But, in
> many respects, that would actually be better than the current system
> of having isolationtester try to figure it out itself.

Meh.  I'm not sure that would actually help anything.  The problem is not
so much with figuring out whether a step blocks, as knowing when it's
expected to complete.  And for sure I don't want to annotate the spec
files to the point of saying "this action should cause these other steps
to complete".

Actually ... the thing we've been fighting over the past couple days is
having to make step completion orders deterministic when in principle
they aren't and don't need to be.  Maybe the solution is something like
the core tests' variant expected files, ugly though those are.
        regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Re: [COMMITTERS] pgsql: Add some isolation tests for deadlock detection and resolution.
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Crash with old Windows on new CPU