Pass 'master' role to a callback script instead of 'promoted' (#2554)

Co-authored-by: Alexander Kukushkin <[email protected]>
This commit is contained in:
Polina Bungina
2023-02-08 14:09:51 +01:00
committed by GitHub
co-authored by Alexander Kukushkin
parent 1669a49b2d
commit b85f155dbe
4 changed files with 8 additions and 7 deletions
+1
View File
@@ -65,6 +65,7 @@ Feature: basic replication
Then I receive a response returncode 0
And postgres2 role is the primary after 24 seconds
And Response on GET http://127.0.0.1:8010/history contains recovery after 10 seconds
And there is a postgres2_cb.log with "on_role_change master batman" in postgres2 data directory
When I issue a PATCH request to http://127.0.0.1:8010/config with {"synchronous_mode": null, "master_start_timeout": 0}
Then I receive a response code 200
When I add the table bar to postgres2