Skip to content

Commit

Permalink
Release/1.6.1 (#762)
Browse files Browse the repository at this point in the history
* Update parson lib.

* Prepare release 1.6.1.

* Per review.

* Fix the expected monitor extension version string.
  • Loading branch information
DimCitus authored Jul 8, 2021
1 parent 88bce76 commit 626d643
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 9 deletions.
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
### pg_auto_failover v1.6.1 (July 7, 2021) ###

This release contains monitor schema changes, so the monitor extension gets
a version bump from 1.5 to 1.6, and this is the first release in the 1.6
series.

In this release we introduce a new state in the FSM: "dropped". This state
allows a node to realise it's been dropped from the monitor, and act
accordingly (mostly, stops cleanly and register it's been dropped).

This means that the command `pg_autoctl drop node` now only completes when
the node that is being dropped is still reachable. To drop a node that is
unreachable (e.g. machine died), you should now use the command `pg_autoctl
drop node --force`.

#### Added
* Feature crash recovery before pg_rewind (#656)
* Allow building pg_auto_failover with Postgres 14. (#716)
* Track nodes current timeline on the monitor and use it during election. (#730)
* Implement drop-at-a-distance semantics. (#734)
* Add the reported timeline id to the monitor events table. (#753)

#### Changed
* Fix how many nodes need to report their LSN to perform a failover. (#707)
* Allow an old primary node (demoted/catchingup) to join another election. (#727)
* Have pg_autoctl drop node command wait until the node has been removed. (#748)

#### Fixed
* Fix/consider timeline when reaching secondary (#695)
* Install btree_gist when upgrade to >= 1.4, not just 1.4. (#714)
* Fix a race condition issue around health check updates. (#720)
* Not all the monitor code got the memo about nodeid being a bigint. (#729)
* Use sysctl(3) on BSD (#733)
* Fix transaction begin failure handling (#751)
* Fix a connection leak at SIGINT. (#759)

### pg_auto_failover v1.5.2 (May 20, 2021) ###

This is a bugfix release for the v1.5 series.
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ AZURE_LOCATION ?= francecentral
# sudo apt-get install -q -y postgresql-13-auto-failover-1.5=1.5.2
# postgresql-${AZ_PG_VERSION}-auto-failover-${AZ_PGAF_DEB_VERSION}=${AZ_PGAF_VERSION}
AZ_PG_VERSION ?= 13
AZ_PGAF_DEB_VERSION ?= 1.5
AZ_PGAF_DEB_REVISION ?= 1.5.2-1
AZ_PGAF_DEB_VERSION ?= 1.6
AZ_PGAF_DEB_REVISION ?= 1.6.1-1

export AZ_PG_VERSION
export AZ_PGAF_DEB_VERSION
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(self, **options):
# The short X.Y version.
version = "1.6"
# The full version, including alpha/beta/rc tags.
release = "1.6.0"
release = "1.6.1"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
7 changes: 5 additions & 2 deletions src/bin/lib/parson/parson.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
SPDX-License-Identifier: MIT
Parson 1.1.2 ( http://kgabis.github.com/parson/ )
Parson 1.1.3 ( http://kgabis.github.com/parson/ )
Copyright (c) 2012 - 2021 Krzysztof Gabis
Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down Expand Up @@ -864,7 +864,10 @@ static JSON_Value * parse_number_value(const char **string) {
double number = 0;
errno = 0;
number = strtod(*string, &end);
if (errno || !is_decimal(*string, end - *string)) {
if (errno == ERANGE && (number == -HUGE_VAL || number == HUGE_VAL)) {
return NULL;
}
if ((errno && errno != ERANGE) || !is_decimal(*string, end - *string)) {
return NULL;
}
*string = end;
Expand Down
2 changes: 1 addition & 1 deletion src/bin/lib/parson/parson.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
SPDX-License-Identifier: MIT
Parson 1.1.2 ( http://kgabis.github.com/parson/ )
Parson 1.1.3 ( http://kgabis.github.com/parson/ )
Copyright (c) 2012 - 2021 Krzysztof Gabis
Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
1 change: 1 addition & 0 deletions src/bin/lib/parson/tests/test_2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"hard to parse number" : -3.14e-4,
"big int": 2147483647,
"big uint": 4294967295,
"double underflow": 6.9041432094973937e-310,
"boolean true" : true,
"boolean false" : false,
"null" : null,
Expand Down
1 change: 1 addition & 0 deletions src/bin/lib/parson/tests/test_2_comments.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"hard to parse number" : -3.14e-4,
"big int": 2147483647,
"big uint": 4294967295,
"double underflow": 6.9041432094973937e-310,
"boolean true" : true,
"boolean false" : false,
"null" : null,
Expand Down
1 change: 1 addition & 0 deletions src/bin/lib/parson/tests/test_2_pretty.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"hard to parse number": -0.00031399999999999999,
"big int": 2147483647,
"big uint": 4294967295,
"double underflow": 6.9041432094973937e-310,
"boolean true": true,
"boolean false": false,
"null": null,
Expand Down
4 changes: 2 additions & 2 deletions src/bin/pg_autoctl/azure.c
Original file line number Diff line number Diff line change
Expand Up @@ -1146,8 +1146,8 @@ azure_prepare_target_versions(KeyVal *env)

/* default values */
sformat(env->values[0], MAXCONNINFO, "13"); /* AZ_PG_VERSION */
sformat(env->values[1], MAXCONNINFO, "1.5"); /* AZ_PGAF_DEB_VERSION */
sformat(env->values[2], MAXCONNINFO, "1.5.2-1"); /* AZ_PGAF_DEB_REVISION */
sformat(env->values[1], MAXCONNINFO, "1.6"); /* AZ_PGAF_DEB_VERSION */
sformat(env->values[2], MAXCONNINFO, "1.6.1-1"); /* AZ_PGAF_DEB_REVISION */

for (int i = 0; i < 3; i++)
{
Expand Down
2 changes: 1 addition & 1 deletion src/bin/pg_autoctl/defaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#define PG_AUTOCTL_STATE_VERSION 1

/* additional version information for printing version on CLI */
#define PG_AUTOCTL_VERSION "1.6.0.3"
#define PG_AUTOCTL_VERSION "1.6.1"

/* version of the extension that we requite to talk to on the monitor */
#define PG_AUTOCTL_EXTENSION_VERSION "1.6"
Expand Down

0 comments on commit 626d643

Please sign in to comment.