Skip to content

fix(asap-tools): probe the ClickHouse adapter's readiness endpoint - #905

Open
milindsrivastava1997 wants to merge 1 commit into
mainfrom
fix-clickhouse-engine-readiness
Open

milindsrivastava1997 wants to merge 1 commit into
mainfrom
fix-clickhouse-engine-readiness

Conversation

@milindsrivastava1997

Copy link
Copy Markdown
Contributor

Problem: QueryEngineRustService checks readiness by curling /api/v1/status/runtimeinfo, the Prometheus adapter's endpoint. A ClickHouse-backed engine serves /clickhouse/ping instead (clickhouse_http.rs:178) and returns 404 on the Prometheus path, so wait_until_ready timed out after 60 s on every ClickHouse sketchdb run. Seen on CloudLab while testing #874: the engine was up (/clickhouse/ping 200, /api/v1/status/runtimeinfo 404).

Fix: runtime_info_endpoint(backend_type) picks the adapter's endpoint; start() stores it and the readiness check probes it.

Tests: tests/test_victoriametrics_readiness.py.

🤖 Generated with Claude Code

A ClickHouse-backed query engine serves /clickhouse/ping and no
Prometheus API, so the readiness check on /api/v1/status/runtimeinfo
never passed and every ClickHouse sketchdb run timed out after 60 s.
The endpoint now follows the backend type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant