Skip to content

Log more information when service discovery fails

What does this MR do?

Adds more log information when service discovery fails. This will make it easier to find the root cause when a service discovery failure leads to a spike of no_secondaries_available errors (see #323726 (comment 655409103) for the issue).

Specifically, seeing the host_list_length at this point lets us distinguish between errors with a pre-existing host list (which do not prevent contacting secondary postgres servers) and errors without a pre-existing host list (which do).

Screenshots or Screencasts (strongly suggested)

How to setup and validate locally (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Merge request reports

Loading