Re: Injection points: some tools to wait and wake
От
Andrey M. Borodin
Тема
Re: Injection points: some tools to wait and wake
Дата
Msg-id
6426C4A0-DFFA-4B3B-B49E-CA1A6F40C81B@yandex-team.ru
Ответ на
Re: Injection points: some tools to wait and wake (Michael Paquier)
Список
Дерево обсуждения
Injection points: some tools to wait and wake Michael Paquier <michael@paquier.xyz>
Re: Injection points: some tools to wait and wake "Andrey M. Borodin" <x4mmm@yandex-team.ru>
Re: Injection points: some tools to wait and wake Michael Paquier <michael@paquier.xyz>
Re: Injection points: some tools to wait and wake "Andrey M. Borodin" <x4mmm@yandex-team.ru>
Re: Injection points: some tools to wait and wake Michael Paquier <michael@paquier.xyz>
Re: Injection points: some tools to wait and wake Michael Paquier <michael@paquier.xyz>
Re: Injection points: some tools to wait and wake Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Injection points: some tools to wait and wake Michael Paquier <michael@paquier.xyz>
Re: Injection points: some tools to wait and wake Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Injection points: some tools to wait and wake Michael Paquier <michael@paquier.xyz>
Re: Injection points: some tools to wait and wake Michael Paquier <michael@paquier.xyz>
Re: Injection points: some tools to wait and wake Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Injection points: some tools to wait and wake Michael Paquier <michael@paquier.xyz>
Re: Injection points: some tools to wait and wake Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Injection points: some tools to wait and wake Michael Paquier <michael@paquier.xyz>
Re: Injection points: some tools to wait and wake "Andrey M. Borodin" <x4mmm@yandex-team.ru>
Re: Injection points: some tools to wait and wake Michael Paquier <michael@paquier.xyz>
Re: Injection points: some tools to wait and wake "Andrey M. Borodin" <x4mmm@yandex-team.ru>
Re: Injection points: some tools to wait and wake Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Injection points: some tools to wait and wake "Andrey M. Borodin" <x4mmm@yandex-team.ru>
Re: Injection points: some tools to wait and wake Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Injection points: some tools to wait and wake Michael Paquier <michael@paquier.xyz>
Re: Injection points: some tools to wait and wake "Andrey M. Borodin" <x4mmm@yandex-team.ru>
Re: Injection points: some tools to wait and wake Michael Paquier <michael@paquier.xyz>
Re: Injection points: some tools to wait and wake Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Injection points: some tools to wait and wake Michael Paquier <michael@paquier.xyz>
Re: Injection points: some tools to wait and wake Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Injection points: some tools to wait and wake "Andrey M. Borodin" <x4mmm@yandex-team.ru>
Re: Injection points: some tools to wait and wake Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Injection points: some tools to wait and wake "Andrey M. Borodin" <x4mmm@yandex-team.ru>
Re: Injection points: some tools to wait and wake Michael Paquier <michael@paquier.xyz>
Re: Injection points: some tools to wait and wake Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Injection points: some tools to wait and wake Michael Paquier <michael@paquier.xyz>
Re: Injection points: some tools to wait and wake Jelte Fennema-Nio <postgres@jeltef.nl>
Re: Injection points: some tools to wait and wake "Andrey M. Borodin" <x4mmm@yandex-team.ru>
Re: Injection points: some tools to wait and wake Michael Paquier <michael@paquier.xyz>
Re: Injection points: some tools to wait and wake Jelte Fennema-Nio <postgres@jeltef.nl>
Re: Injection points: some tools to wait and wake Michael Paquier <michael@paquier.xyz>
Re: Injection points: some tools to wait and wake Jelte Fennema-Nio <postgres@jeltef.nl>
Re: Injection points: some tools to wait and wake Michael Paquier <michael@paquier.xyz>
Re: Injection points: some tools to wait and wake Jelte Fennema-Nio <postgres@jeltef.nl>
Re: Injection points: some tools to wait and wake Michael Paquier <michael@paquier.xyz>
Re: Injection points: some tools to wait and wake Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Injection points: some tools to wait and wake Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Injection points: some tools to wait and wake Michael Paquier <michael@paquier.xyz>
Re: Injection points: some tools to wait and wake Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
> On 27 Feb 2024, at 04:29, Michael Paquier wrote:
>
> For
> example, the test just posted here does not rely on that:
> https://www.postgresql.org/message-id/ZdyZya4YrNapWKqz@ip-10-97-1-34.eu-west-3.compute.internal
Instead, that test is scanning logs
+ # Note: $node_primary->wait_for_replay_catchup($node_standby) would be
+ # hanging here due to the injection point, so check the log instead.+
+ my $terminated = 0;
+ for (my $i = 0; $i < 10 * $PostgreSQL::Test::Utils::timeout_default; $i++)
+ {
+ if ($node_standby->log_contains(
+ 'terminating process .* to release replication slot \"injection_activeslot\"', $logstart))
+ {
+ $terminated = 1;
+ last;
+ }
+ usleep(100_000);
+ }
But, AFAICS, the purpose is the same: wait until event happened.
Best regards, Andrey Borodin.
В списке pgsql-hackers по дате отправления