Details
-
New Feature
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
HA
-
1
-
HA Team 2020-03-11, HA Team 2020-03-25, HA Team 2020-04-08, HA Team 2020-04-22 (SS 4/15), HA Team 2020-05-05
-
New Feature
-
-
Needs Assessment
Description
When the puppetdb migrator is performing a migration it needs to ensure the data role is not connected to the database.
The new migration workflow should look like
- Lock the schema migration table with access exclusive
- Check to see if migrations are needed, and if so,
- Revoke connection access for data role,
- Disconnect any in-flight connections
- Perform migrations,
- Commit transaction,
- Reallow access for the data role
To disconnect the data role's database connection(s)
SELECT pg_terminate_backend(pid)
|
FROM pg_stat_activity
|
WHERE datname='<puppetdb/pe-puppetdb>'
|
AND usename!='<puppetdb migrator role>';
|
Attachments
Issue Links
- causes
-
PDB-4893 Migration User check fails for Azure based postgresql servers
-
- Closed
-