diff --git a/docs/releases.rst b/docs/releases.rst index 7966b676..74124c92 100644 --- a/docs/releases.rst +++ b/docs/releases.rst @@ -3,6 +3,19 @@ Release notes ============= +Version 1.5.2 +------------- + +Compatibility and bugfix release. + +- Compatibility with kazoo-2.6.0 (Alexander Kukushkin) + + In order to make sure that requests are performed with an appropriate timeout, Patroni redefines create_connection method from python-kazoo module. The last release of kazoo slightly changed the way how create_connection method is called. + +- Fix Patroni crash when Consul cluster loses the leader (Alexander) + + The crash was happening due to incorrect implementation of touch_member method, it should return boolean and not raise any exceptions. + Version 1.5.1 ------------- diff --git a/features/standby_cluster.feature b/features/standby_cluster.feature index e76f5152..e04c24a9 100644 --- a/features/standby_cluster.feature +++ b/features/standby_cluster.feature @@ -2,10 +2,11 @@ Feature: standby cluster Scenario: check permanent logical slots are preserved on failover/switchover Given I start postgres1 Then postgres1 is a leader after 10 seconds - When I issue a PATCH request to http://127.0.0.1:8009/config with {"slots": {"test_logical": {"type": "logical", "database": "postgres", "plugin": "test_decoding"}}} + And I sleep for 2 seconds + When I issue a PATCH request to http://127.0.0.1:8009/config with {"slots": {"pm_1": {"type": "physical"}}, "postgresql": {"parameters": {"wal_level": "logical"}}} Then I receive a response code 200 And Response on GET http://127.0.0.1:8009/config contains slots after 10 seconds - When I issue a PATCH request to http://127.0.0.1:8009/config with {"slots": {"pm_1": {"type": "physical"}}, "postgresql": {"parameters": {"wal_level": "logical"}}} + When I issue a PATCH request to http://127.0.0.1:8009/config with {"slots": {"test_logical": {"type": "logical", "database": "postgres", "plugin": "test_decoding"}}} Then I receive a response code 200 When I start postgres0 with callback configured Then "members/postgres0" key in DCS has state=running after 10 seconds diff --git a/patroni/version.py b/patroni/version.py index 51ed7c48..c3b38415 100644 --- a/patroni/version.py +++ b/patroni/version.py @@ -1 +1 @@ -__version__ = '1.5.1' +__version__ = '1.5.2'