Re: Timeline issue if StartupXLOG() is interrupted right before end-of-recovery record is done

Поиск
Список
Период
Сортировка
От Roman Eskin
Тема Re: Timeline issue if StartupXLOG() is interrupted right before end-of-recovery record is done
Дата
Msg-id 15fc1d1c-f0c2-4489-9611-b0262c14cfdc@arenadata.io
обсуждение исходный текст
Ответ на Re: Timeline issue if StartupXLOG() is interrupted right before end-of-recovery record is done  ("Andrey M. Borodin" <x4mmm@yandex-team.ru>)
Список pgsql-hackers
Hi Andrey,

Thank you for your feedback!

> I think here you can just specify target timeline for the standby instance_1 and it will continue recovery from
instance_2.

Most likely yes, but nevertheless it looks more like a W/A.

> Persisting recovery signal file for some _timeout_ seems super dangerous to me. In distributed systems every extra
_timeout_is a source of complexity, uncertainty and despair.
 

The approach is not about persisting the signal files for some timeout. 
Currently the files are removed in StartupXLOG() before 
writeTimeLineHistory() and PerformRecoveryXLogAction() are called. The 
suggestion is to move the file removal after PerformRecoveryXLogAction() 
inside StartupXLOG().

Best regards,
Roman Eskin





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