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

feat: health checks need to consider DB health #1382

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

aeneasr
Copy link
Member

@aeneasr aeneasr commented Jul 24, 2023

Closes #831

Related issue(s)

Checklist

  • I have read the contributing guidelines.
  • I have referenced an issue containing the design document if my change
    introduces a new feature.
  • I am following the
    contributing code guidelines.
  • I have read the security policy.
  • I confirm that this pull request does not address a security
    vulnerability. If this pull request addresses a security vulnerability, I
    confirm that I got the approval (please contact
    [email protected]) from the maintainers to push
    the changes.
  • I have added tests that prove my fix is effective or that my feature
    works.
  • I have added or changed the documentation.

Further Comments

@aeneasr aeneasr marked this pull request as ready for review July 24, 2023 13:13
Copy link
Member

@jonas-jonas jonas-jonas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took a quick look at this, and then noticed, that you already have a PR ready.
Unfortunately, it doesn't seem to be as easy to access the Ping method in the Keto setup, see my comment.

}

// This can not be contextualized because of some gobuffalo/pop limitations.
return errors.WithStack(p.conn.Store.(pinger).Ping())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work because the "original" Store is wrapped in a contextStore, which for some reason doesn't implement Ping anymore: interface conversion: pop.contextStore is not sql.pinger: missing method Ping

In Kratos we don't do that. Not sure why we do it Keto.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ready check does not include current database connectivity
2 participants