From e36a3152d0a3adf40100ee81c43c2e37eedc73ab Mon Sep 17 00:00:00 2001 From: Austin Blatt Date: Mon, 11 Sep 2023 09:04:14 -0700 Subject: [PATCH 1/7] (maint) Update version to 8.1.1 for release --- project.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project.clj b/project.clj index fdeb470853..fc3a2a276e 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(def pdb-version "8.1.1-SNAPSHOT") +(def pdb-version "8.1.1") (def clj-parent-version "7.1.1") From e1ff736360210b81ad9a018f83f7538acbc0bb43 Mon Sep 17 00:00:00 2001 From: Austin Blatt Date: Mon, 11 Sep 2023 09:06:00 -0700 Subject: [PATCH 2/7] (maint) Update version to 8.1.2-SNAPSHOT --- project.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project.clj b/project.clj index fc3a2a276e..ce1450dfdc 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(def pdb-version "8.1.1") +(def pdb-version "8.1.2-SNAPSHOT") (def clj-parent-version "7.1.1") From c3af29575c6322b21c6dc51bd58184377ade41bc Mon Sep 17 00:00:00 2001 From: Steve Axthelm Date: Mon, 11 Sep 2023 16:58:38 -0700 Subject: [PATCH 3/7] (PDB-5675) update supported platforms --- documentation/overview.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/documentation/overview.markdown b/documentation/overview.markdown index 5bdc0d7c19..961db37f83 100644 --- a/documentation/overview.markdown +++ b/documentation/overview.markdown @@ -74,10 +74,10 @@ Puppet provides PuppetDB packages and a module which simplify the setup of its SSL certificates and init scripts. The packages are available for the following operating systems: -* Red Hat Enterprise Linux 6, 7, and 8 -* SuSE Enterprise Linux 12 -* Debian 8 (Jessie), 9 (Stretch), and 10 (Buster) -* Ubuntu 16.04 (Xenial) LTS, 18.04 (Bionic) LTS, and 20.04 (focal) +* Red Hat Enterprise Linux 7, 8, and 9 +* SuSE Enterprise Linux 12, 15 +* Debian 10 (Buster), and 11 (Bullseye) +* Ubuntu 18.04 (Bionic) LTS, 20.04 (Focal), 22.04 (Jammy) LTS [See here for instructions for installing via the PuppetDB module.][install_via_module] From 69229d0beb2311cc1dddd4d945d914d9ae343091 Mon Sep 17 00:00:00 2001 From: Jenkins CI Date: Wed, 13 Sep 2023 18:04:26 +0000 Subject: [PATCH 4/7] Set clj-parent=5.5.1 --- project.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project.clj b/project.clj index ddb0b08933..72b6efdeba 100644 --- a/project.clj +++ b/project.clj @@ -1,6 +1,6 @@ (def pdb-version "7.14.1-SNAPSHOT") -(def clj-parent-version "5.5.0") +(def clj-parent-version "5.5.1") (defn true-in-env? [x] (#{"true" "yes" "1"} (System/getenv x))) From 6332cf8e3925a87dfcbdc999f737d696bd458c92 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Tue, 12 Sep 2023 18:53:26 -0500 Subject: [PATCH 5/7] (maint) Elaborate on 7.14.0 release notes --- documentation/release_notes_7.markdown | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/documentation/release_notes_7.markdown b/documentation/release_notes_7.markdown index 5489dd5232..d1a7920e3b 100644 --- a/documentation/release_notes_7.markdown +++ b/documentation/release_notes_7.markdown @@ -21,18 +21,23 @@ Released August 22 2023 ## New features and improvements -* Add el-9 as supported platform - [PDB-5671](https://perforce.atlassian.net/browse/PDB-5671) +* RedHat Enterprise Linux 9 (RHEL 9) has been added as a supported + platform. ([PDB-5671](https://perforce.atlassian.net/browse/PDB-5671)) -* PQL parsing of OR clauses can result in OOM errors - [PDB-5643](https://perforce.atlassian.net/browse/PDB-5643) +* Ubuntu 22.04 has been added as a supported platform. + ([PDB-5636](https://perforce.atlassian.net/browse/PDB-5636)) -* Add ubuntu 2204 as supported platform - [PDB-5636](https://perforce.atlassian.net/browse/PDB-5636) +### Bug fixes + +* Some PQL queries with numerous `or` clauses should no longer cause + PuppetDB to run out of memory. Previously they could allocate an + exorbitant amount of RAM. + ([GitHub #3874](https://github.com/puppetlabs/puppetdb/issues/3874)) ### Contributors -Austin Blatt, Nick Burgan-Illig, Jonathan Newman, Eric Newton, Joshua Partlow, Steve Axthelm, and Rob Browning +Austin Blatt, Nick Burgan-Illig, Jonathan Newman, Eric Newton, Joshua +Partlow, Steve Axthelm, and Rob Browning ## PuppetDB 7.13.1 From f636d2ee212a9d2565f4be6b37a3aea1e04957d5 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Tue, 12 Sep 2023 19:27:16 -0500 Subject: [PATCH 6/7] (maint) Elaborate on 8.1.0 release notes --- documentation/api/query/v4/query.markdown | 13 +++++++ documentation/release_notes_8.markdown | 42 +++++++++++++++++------ 2 files changed, 44 insertions(+), 11 deletions(-) diff --git a/documentation/api/query/v4/query.markdown b/documentation/api/query/v4/query.markdown index 0ce11d1828..af908333da 100644 --- a/documentation/api/query/v4/query.markdown +++ b/documentation/api/query/v4/query.markdown @@ -115,6 +115,19 @@ would be recorded as a string like For a walkthrough on constructing queries, see [the query tutorial page][tutorial]. For quick tips on using curl to make ad hoc queries, see [the curl tips page][curl]. +## Experimental query termination + +PuppetDB now monitors all queries for client disconnects, and +terminates the query (including the database work) as soon as the +client is gone. The same mechanism also helps enforce relevant query +timeouts promptly. + +For now, this subsystem can be disabled by setting the environment +variable `PDB_PROMPTLY_END_QUERIES` to `false`, which might be helpful +if you encounter +[this issue with PuppetDB 8.1.0](https://github.com/puppetlabs/puppetdb/issues/3866), +but the variable is likely to be removed in a future release. + ## Experimental query optimization > *Note*: this feature is experimental and may be altered or removed diff --git a/documentation/release_notes_8.markdown b/documentation/release_notes_8.markdown index 875fc44ee5..434e085fbf 100644 --- a/documentation/release_notes_8.markdown +++ b/documentation/release_notes_8.markdown @@ -17,24 +17,44 @@ Released August 22 2023 ## New features and improvements -* Add el-9 as supported platform - [PDB-5667](https://perforce.atlassian.net/browse/PDB-5667) +* RedHat Enterprise Linux 9 (RHEL 9) has been added as a supported + platform. + ([PDB-5667](https://perforce.atlassian.net/browse/PDB-5667)) -* Add ubuntu 22.04 as supported platform - [PDB-5636](https://perforce.atlassian.net/browse/PDB-5636) +* Ubuntu 22.04 has been added as a supported platform. + ([PDB-5636](https://perforce.atlassian.net/browse/PDB-5636)) -* Abandon queries when client disconnects - [PDB-5645](https://perforce.atlassian.net/browse/PDB-5645) +* PuppetDB will now abandon queries more promptly when a client + disconnects. Previously an expensive query could continue running + indefinitely. The same mechanism should also help ensure query + timeouts are immediately enforced. + ([GitHub #3867](https://github.com/puppetlabs/puppetdb/issues/3867)) -* PQL parsing of OR clauses can result in OOM errors - [PDB-5643](https://perforce.atlassian.net/browse/PDB-5643) +* When no database migrations are pending, PuppetDB will no longer + disconnect clients on restart. + ([PE-36120](https://perforce.atlassian.net/browse/PE-36120)) -* Restarts of PuppetDB on the primary kill database connections on compilers when no migrations are pending - [PDB-36120](https://perforce.atlassian.net/browse/PDB-36120) +### Bug fixes + +* Some PQL queries with numerous `or` clauses should no longer cause + PuppetDB to run out of memory. Previously they could allocate an + exorbitant amount of RAM. + ([GitHub #3874](https://github.com/puppetlabs/puppetdb/issues/3874)) + +### Known issues + +* The mechanism used to abandon queries and enforce timeouts mentioned + above may throw a `CancelledKeyException` when a network connection + is reused for multiple queries. For the time being, the problem can + be addressed by setting the experimental environment variable + `PDB_PROMPTLY_END_QUERIES` to `false`. (This variable may be + removed in a future release.) + ([GitHub #3866](https://github.com/puppetlabs/puppetdb/issues/3866)) ### Contributors -Austin Blatt, Nick Burgan-Illig, Jonathan Newman, Eric Newton, Joshua Partlow, Steve Axthelm, and Rob Browning +Austin Blatt, Nick Burgan-Illig, Jonathan Newman, Eric Newton, Joshua +Partlow, Steve Axthelm, and Rob Browning ## PuppetDB 8.0.1 From 0efb8c1cb715994f4ee8d879721cc7b3696487c8 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Wed, 13 Sep 2023 17:03:46 -0500 Subject: [PATCH 7/7] (maint) Add 8.1.1 release notes --- documentation/release_notes_8.markdown | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/documentation/release_notes_8.markdown b/documentation/release_notes_8.markdown index 434e085fbf..c3b2a25322 100644 --- a/documentation/release_notes_8.markdown +++ b/documentation/release_notes_8.markdown @@ -11,6 +11,22 @@ canonical: "/puppetdb/latest/release_notes.html" # PuppetDB: Release notes +## PuppetDB 8.1.1 + +Released September 14 2023 + +### Bug fixes + +* PuppetDB should no longer throw a `CancelledKeyException` when a + network connection is reused for multiple queries (originally + noticed in the 8.1.0 release). + ([GitHub #3866](https://github.com/puppetlabs/puppetdb/issues/3866)) + +### Contributors + +Austin Blatt, Ingrida Cazers, Josh Partlow, Rob Browning, and +Steve Axthelm + ## PuppetDB 8.1.0 Released August 22 2023