mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-01-27 10:20:10 +00:00
Additionally run on_role_change callback in post_recover() for a primary that failed to start after a crash to increase chances the callback is executed, even if the further start as a replica fails --------- Co-authored-by: Alexander Kukushkin <cyberdemn@gmail.com>
10 lines
264 B
Python
10 lines
264 B
Python
import os
|
|
|
|
from behave import step
|
|
|
|
|
|
@step('I ensure {name:name} fails to start after a failure')
|
|
def spoil_autoconf(context, name):
|
|
with open(os.path.join(context.pctl._processes[name]._data_dir, 'postgresql.auto.conf'), 'w') as f:
|
|
f.write('foo=bar')
|