Skip to content

Add diagnostic logging for slow healthcheck DB queries - #515

Draft
patilsuraj767 wants to merge 1 commit into
openshift-online:mainfrom
patilsuraj767:add-healthcheck-logging
Draft

Add diagnostic logging for slow healthcheck DB queries#515
patilsuraj767 wants to merge 1 commit into
openshift-online:mainfrom
patilsuraj767:add-healthcheck-logging

Conversation

@patilsuraj767

Copy link
Copy Markdown

The healthcheck handler's DB call (instanceDao.Get) can exceed the Kubernetes probe timeout (default 1s), causing liveness/readiness probe failures. Use a detached context for the DB query so it runs to completion even after the kubelet disconnects, and log the actual query duration when the probe connection is outlasted. Skip writing the HTTP response when the client is already gone to avoid broken pipe errors.

Signed-off-by: Suraj Patil <Suraj Patil>
@coderabbitai

coderabbitai Bot commented Apr 8, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0f396c2c-4084-41ca-b285-f12c56e1ad44

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@jnpacker

jnpacker commented May 8, 2026

Copy link
Copy Markdown
Contributor

Is there an associated Jira issue for this?

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.

2 participants