From 6b685036d01490c4a994c3616d916bfa7b0ef00d Mon Sep 17 00:00:00 2001 From: Polina Bungina <27892524+hughcapet@users.noreply.github.com> Date: Tue, 17 Sep 2024 16:24:50 +0200 Subject: [PATCH] Release v4.0.2 (#3166) - Increase version - Use newer pyright (not latest) - Add RNs --- .github/workflows/tests.yaml | 2 +- docs/releases.rst | 32 ++++++++++++++++++++++++++++++++ patroni/version.py | 2 +- 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 2056d492..581b019b 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -186,7 +186,7 @@ jobs: - uses: jakebailey/pyright-action@v2 with: - version: 1.1.378 + version: 1.1.379 docs: runs-on: ubuntu-latest diff --git a/docs/releases.rst b/docs/releases.rst index 2c42ea9a..98eb34e5 100644 --- a/docs/releases.rst +++ b/docs/releases.rst @@ -3,6 +3,38 @@ Release notes ============= +Version 4.0.2 +------------- + +Released 2024-09-17 + +**Bugfix** + +- Handle exceptions while discovering configuration validation files (Alexander Kukushkin) + + Skip directories for which Patroni does not have sufficient permissions to perform list operations. + +- Make sure inactive hot physical replication slots don't hold ``xmin`` (Alexander Kukushkin, Polina Bungina) + + Since version 3.2.0 Patroni creates physical replication slots for all members on replicas and periodically moves them forward using ``pg_replication_slot_advance()`` function. However if for any reason ``hot_standby_feedback`` is enabled and the primary is demoted to replica, the now inactive slots have ``NOT NULL`` ``xmin`` value propagated back to the new primary. This results in ``xmin`` horizon not being moved forward and vacuum not being able to clean up dead tuples. With this fix, Patroni recreates the physical replication slots that are supposed to be inactive but have ``NOT NULL`` ``xmin`` value. + +- Fix unhandled ``DCSError`` during the startup phase (Waynerv) + + Ensure DCS connectivity before trying to check the uniqueness of the node name. + +- Explicitly include ``CMDLINE_OPTIONS`` GUCs when querying ``pg_settings`` (Alexander Kukushkin) + + Make sure all GUCs that are passed to postmaster as command line parameters are restored when Patroni is joining a running standby. This is a follow-up for the bug fixed in Patroni 3.2.2. + +- Fix bug in ``synchronous_standby_names`` quotting logic (Alexander Kukushkin) + + According to PostgreSQL documentation, ``ANY`` and ``FIRST`` keywords are supposed to be double-quoted, which Patroni did not do before. + +- Fix keepalive connection out-of-range issue (hadizamani021) + + Ensure that ``keepalive`` option value calculated based on the ``ttl`` set does not exceed the maximum allowed value for the current platform. + + Version 4.0.1 ------------- diff --git a/patroni/version.py b/patroni/version.py index d716e607..c95fff06 100644 --- a/patroni/version.py +++ b/patroni/version.py @@ -2,4 +2,4 @@ :var __version__: the current Patroni version. """ -__version__ = '4.0.1' +__version__ = '4.0.2'