Skip to content
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

Merged

Conversation

yrudman
Copy link
Contributor

@yrudman yrudman commented Jan 25, 2018

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

@miq-bot miq-bot added the bug label Jan 25, 2018
@@ -102,6 +102,9 @@ def validate(new_connection_params = {})

def backlog
connection.xlog_location_diff(remote_node_lsn, remote_replication_lsn)
rescue => e
Copy link
Member

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?

Copy link
Contributor Author

@yrudman yrudman Jan 25, 2018

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.

@yrudman yrudman force-pushed the rescue-attempt-to-get-backlog-for-replication branch from 5e16dd9 to a9e8ee8 Compare January 25, 2018 20:26
@miq-bot
Copy link
Member

miq-bot commented Jan 25, 2018

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
2 files checked, 0 offenses detected
Everything looks fine. 🍰

@carbonin carbonin self-assigned this Jan 25, 2018
@carbonin carbonin merged commit 0e76e34 into ManageIQ:master Jan 25, 2018
@carbonin carbonin added this to the Sprint 78 Ending Jan 29, 2018 milestone Jan 25, 2018
@yrudman yrudman deleted the rescue-attempt-to-get-backlog-for-replication branch January 26, 2018 14:54
@yrudman
Copy link
Contributor Author

yrudman commented Jan 26, 2018

@miq-bot add-label fine/yes

simaishi pushed a commit that referenced this pull request Mar 1, 2018
…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
@simaishi
Copy link
Contributor

simaishi commented Mar 1, 2018

Fine backport details:

$ git log -1
commit 77fcaec0f66143c8bb2e7514a4df1bac49eaa5cd
Author: Nick Carboni <[email protected]>
Date:   Thu Jan 25 16:03:21 2018 -0500

    Merge pull request #16889 from yrudman/rescue-attempt-to-get-backlog-for-replication
    
    Rescue attempt to get backlog for remote db in PglogicalSubscription#backlog
    (cherry picked from commit 0e76e3438f193ebf16aa745da35386ea2e378d15)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1550729

simaishi pushed a commit that referenced this pull request Mar 6, 2018
…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
@simaishi
Copy link
Contributor

simaishi commented Mar 6, 2018

Gaprindashvili backport details:

$ git log -1
commit 4dc9c5075d6decb78fefc81fe2bba659aed69aef
Author: Nick Carboni <[email protected]>
Date:   Thu Jan 25 16:03:21 2018 -0500

    Merge pull request #16889 from yrudman/rescue-attempt-to-get-backlog-for-replication
    
    Rescue attempt to get backlog for remote db in PglogicalSubscription#backlog
    (cherry picked from commit 0e76e3438f193ebf16aa745da35386ea2e378d15)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1550728

d-m-u pushed a commit to d-m-u/manageiq that referenced this pull request Jun 6, 2018
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants