Skip to content

Commit 626d643

Browse files
authored
Release/1.6.1 (#762)
* Update parson lib. * Prepare release 1.6.1. * Per review. * Fix the expected monitor extension version string.
1 parent 88bce76 commit 626d643

File tree

10 files changed

+51
-9
lines changed

10 files changed

+51
-9
lines changed

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1+
### pg_auto_failover v1.6.1 (July 7, 2021) ###
2+
3+
This release contains monitor schema changes, so the monitor extension gets
4+
a version bump from 1.5 to 1.6, and this is the first release in the 1.6
5+
series.
6+
7+
In this release we introduce a new state in the FSM: "dropped". This state
8+
allows a node to realise it's been dropped from the monitor, and act
9+
accordingly (mostly, stops cleanly and register it's been dropped).
10+
11+
This means that the command `pg_autoctl drop node` now only completes when
12+
the node that is being dropped is still reachable. To drop a node that is
13+
unreachable (e.g. machine died), you should now use the command `pg_autoctl
14+
drop node --force`.
15+
16+
#### Added
17+
* Feature crash recovery before pg_rewind (#656)
18+
* Allow building pg_auto_failover with Postgres 14. (#716)
19+
* Track nodes current timeline on the monitor and use it during election. (#730)
20+
* Implement drop-at-a-distance semantics. (#734)
21+
* Add the reported timeline id to the monitor events table. (#753)
22+
23+
#### Changed
24+
* Fix how many nodes need to report their LSN to perform a failover. (#707)
25+
* Allow an old primary node (demoted/catchingup) to join another election. (#727)
26+
* Have pg_autoctl drop node command wait until the node has been removed. (#748)
27+
28+
#### Fixed
29+
* Fix/consider timeline when reaching secondary (#695)
30+
* Install btree_gist when upgrade to >= 1.4, not just 1.4. (#714)
31+
* Fix a race condition issue around health check updates. (#720)
32+
* Not all the monitor code got the memo about nodeid being a bigint. (#729)
33+
* Use sysctl(3) on BSD (#733)
34+
* Fix transaction begin failure handling (#751)
35+
* Fix a connection leak at SIGINT. (#759)
36+
137
### pg_auto_failover v1.5.2 (May 20, 2021) ###
238

339
This is a bugfix release for the v1.5 series.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ AZURE_LOCATION ?= francecentral
9595
# sudo apt-get install -q -y postgresql-13-auto-failover-1.5=1.5.2
9696
# postgresql-${AZ_PG_VERSION}-auto-failover-${AZ_PGAF_DEB_VERSION}=${AZ_PGAF_VERSION}
9797
AZ_PG_VERSION ?= 13
98-
AZ_PGAF_DEB_VERSION ?= 1.5
99-
AZ_PGAF_DEB_REVISION ?= 1.5.2-1
98+
AZ_PGAF_DEB_VERSION ?= 1.6
99+
AZ_PGAF_DEB_REVISION ?= 1.6.1-1
100100

101101
export AZ_PG_VERSION
102102
export AZ_PGAF_DEB_VERSION

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __init__(self, **options):
7373
# The short X.Y version.
7474
version = "1.6"
7575
# The full version, including alpha/beta/rc tags.
76-
release = "1.6.0"
76+
release = "1.6.1"
7777

7878
# The language for content autogenerated by Sphinx. Refer to documentation
7979
# for a list of supported languages.

src/bin/lib/parson/parson.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
SPDX-License-Identifier: MIT
33
4-
Parson 1.1.2 ( http://kgabis.github.com/parson/ )
4+
Parson 1.1.3 ( http://kgabis.github.com/parson/ )
55
Copyright (c) 2012 - 2021 Krzysztof Gabis
66
77
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -864,7 +864,10 @@ static JSON_Value * parse_number_value(const char **string) {
864864
double number = 0;
865865
errno = 0;
866866
number = strtod(*string, &end);
867-
if (errno || !is_decimal(*string, end - *string)) {
867+
if (errno == ERANGE && (number == -HUGE_VAL || number == HUGE_VAL)) {
868+
return NULL;
869+
}
870+
if ((errno && errno != ERANGE) || !is_decimal(*string, end - *string)) {
868871
return NULL;
869872
}
870873
*string = end;

src/bin/lib/parson/parson.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
SPDX-License-Identifier: MIT
33
4-
Parson 1.1.2 ( http://kgabis.github.com/parson/ )
4+
Parson 1.1.3 ( http://kgabis.github.com/parson/ )
55
Copyright (c) 2012 - 2021 Krzysztof Gabis
66
77
Permission is hereby granted, free of charge, to any person obtaining a copy

src/bin/lib/parson/tests/test_2.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"hard to parse number" : -3.14e-4,
1111
"big int": 2147483647,
1212
"big uint": 4294967295,
13+
"double underflow": 6.9041432094973937e-310,
1314
"boolean true" : true,
1415
"boolean false" : false,
1516
"null" : null,

src/bin/lib/parson/tests/test_2_comments.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"hard to parse number" : -3.14e-4,
1717
"big int": 2147483647,
1818
"big uint": 4294967295,
19+
"double underflow": 6.9041432094973937e-310,
1920
"boolean true" : true,
2021
"boolean false" : false,
2122
"null" : null,

src/bin/lib/parson/tests/test_2_pretty.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"hard to parse number": -0.00031399999999999999,
1111
"big int": 2147483647,
1212
"big uint": 4294967295,
13+
"double underflow": 6.9041432094973937e-310,
1314
"boolean true": true,
1415
"boolean false": false,
1516
"null": null,

src/bin/pg_autoctl/azure.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,8 +1146,8 @@ azure_prepare_target_versions(KeyVal *env)
11461146

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

11521152
for (int i = 0; i < 3; i++)
11531153
{

src/bin/pg_autoctl/defaults.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#define PG_AUTOCTL_STATE_VERSION 1
1515

1616
/* additional version information for printing version on CLI */
17-
#define PG_AUTOCTL_VERSION "1.6.0.3"
17+
#define PG_AUTOCTL_VERSION "1.6.1"
1818

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

0 commit comments

Comments
 (0)