Jira (PDB-4685) Notice database version changes and do something?

1 view
Skip to first unread message

Rob Browning (Jira)

unread,
Apr 16, 2020, 12:09:04 PM4/16/20
to puppe...@googlegroups.com
Rob Browning created an issue
 
PuppetDB / Bug PDB-4685
Notice database version changes and do something?
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2020/04/16 9:08 AM
Priority: Normal Normal
Reporter: Rob Browning

Previously pdb always permanently cached the database version (via db-metadata) after the first lookup, so it couldn't notice changes. We're likely to adjust that now so that db-metadata always returns the current version.

Consider arranging for pdb to notice and perhaps shut down (or...) if it notices that the postgresql version changes while it's running, since proceeding might be quite risky.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Rob Browning (Jira)

unread,
Apr 16, 2020, 12:12:03 PM4/16/20
to puppe...@googlegroups.com
Rob Browning updated an issue
Change By: Rob Browning
Previously pdb always permanently cached the database version (via db-metadata) after the first lookup, so it couldn't notice changes.  We're likely to adjust that now so that db-metadata always returns the current version.

Consider arranging for pdb to notice and perhaps shut down (or...) if it notices that the postgresql version changes while it's running, since proceeding might be quite risky.

One option might be a periodic check like the one we've added for the expected migration level.
Reply all
Reply to author
Forward
0 new messages