-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rescue attempt to get backlog for remote db in PglogicalSubscription#backlog #16889
Rescue attempt to get backlog for remote db in PglogicalSubscription#backlog #16889
Conversation
app/models/pglogical_subscription.rb
Outdated
@@ -102,6 +102,9 @@ def validate(new_connection_params = {}) | |||
|
|||
def backlog | |||
connection.xlog_location_diff(remote_node_lsn, remote_replication_lsn) | |||
rescue => e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there something more specific we can rescue here? Maybe a PG
error of some sort?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeaa, I should have done it, changed.
…nage subscription screen even if remote db is offline https://bugzilla.redhat.com/show_bug.cgi?id=1533958
5e16dd9
to
a9e8ee8
Compare
Checked commits yrudman/manageiq@f40c043~...a9e8ee8 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 |
@miq-bot add-label fine/yes |
…for-replication Rescue attempt to get backlog for remote db in PglogicalSubscription#backlog (cherry picked from commit 0e76e34) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1550729
Fine backport details:
|
…for-replication Rescue attempt to get backlog for remote db in PglogicalSubscription#backlog (cherry picked from commit 0e76e34) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1550728
Gaprindashvili backport details:
|
…backlog-for-replication Rescue attempt to get backlog for remote db in PglogicalSubscription#backlog (cherry picked from commit 0e76e34) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1550729
Issue:
Replication management screen on global region throws Error when any of subscribed DB is down.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1533958
@miq-bot add-label bug
\cc @carbonin