From b542e4b5f01019265b44ac4ec8154c7c5953692a Mon Sep 17 00:00:00 2001 From: Alexander Kukushkin Date: Thu, 5 Dec 2019 11:36:17 +0100 Subject: [PATCH] Release 1.6.2 (#1319) * update release notes * bump version --- docs/releases.rst | 55 +++++++++++++++++++++++++++++++++++++++++++++ patroni/__init__.py | 1 - patroni/version.py | 2 +- 3 files changed, 56 insertions(+), 2 deletions(-) diff --git a/docs/releases.rst b/docs/releases.rst index 8f63a9c7..e10a94ed 100644 --- a/docs/releases.rst +++ b/docs/releases.rst @@ -3,6 +3,61 @@ Release notes ============= +Version 1.6.2 +------------- + +**New features** + +- Implemented ``patroni --version`` (Igor Yanchenko) + + It prints the current version of Patroni and exits. + +- Set the ``user-agent`` http header for all http requests (Alexander Kukushkin) + + Patroni is communicating with Consul, Etcd, and Kubernetes API via the http protocol. Having a specifically crafted ``user-agent`` (example: ``Patroni/1.6.2 Python/3.6.8 Linux``) might be useful for debugging and monitoring. + +- Make it possible to configure log level for exception tracebacks (Igor) + + If you set ``log.traceback_level=DEBUG`` the tracebacks will be visible only when ``log.level=DEBUG``. The default behavior remains the same. + + +**Stability improvements** + +- Avoid importing all DCS modules when searching for the module required by the config file (Alexander) + + There is no need to import modules for Etcd, Consul, and Kubernetes if we need only e.g. Zookeeper. It helps to reduce memory usage and solves the problem of having INFO messages ``Failed to import smth``. + +- Removed python ``requests`` module from explicit requirements (Alexander) + + It wasn't used for anything critical, but causing a lot of problems when the new version of ``urllib3`` is released. + +- Improve handling of ``etcd.hosts`` written as a comma-separated string instead of YAML array (Igor) + + Previously it was failing when written in format ``host1:port1, host2:port2`` (the space character after the comma). + + +**Usability improvements** + +- Don't force users to choose members from an empty list in ``patronictl`` (Igor) + + If the user provides a wrong cluster name, we will raise an exception rather than ask to choose a member from an empty list. + +- Make the error message more helpful if the REST API cannot bind (Igor) + + For an inexperienced user it might be hard to figure out what is wrong from the Python stacktrace. + + +**Bugfixes** + +- Fix calculation of ``wal_buffers`` (Alexander) + + The base unit has been changed from 8 kB blocks to bytes in PostgreSQL 11. + +- Use ``passfile`` in ``primary_conninfo`` only on PostgreSQL 10+ (Alexander) + + On older versions there is no guarantee that ``passfile`` will work, unless the latest version of ``libpq`` is installed. + + Version 1.6.1 ------------- diff --git a/patroni/__init__.py b/patroni/__init__.py index 5a681de0..d5fd9464 100644 --- a/patroni/__init__.py +++ b/patroni/__init__.py @@ -20,7 +20,6 @@ class Patroni(object): from patroni.log import PatroniLogger from patroni.postgresql import Postgresql from patroni.request import PatroniRequest - from patroni.version import __version__ from patroni.watchdog import Watchdog self.setup_signal_handlers() diff --git a/patroni/version.py b/patroni/version.py index bb64aa47..4a9b9788 100644 --- a/patroni/version.py +++ b/patroni/version.py @@ -1 +1 @@ -__version__ = '1.6.1' +__version__ = '1.6.2'