Skip to content

Shared-pool Trino cell has no observer coordinator URL: usage collection skipped, org Trino status unavailable #1216

Description

@fuziontech

Seen on mw-dev on 2026-09-22 (cell cell-001, mode: shared-pool, no backends).

controlplane/trino_registry.go derives a registered cell's CoordinatorURL/TLSServerName from its first backend. A pool cell declares no backends, so CoordinatorURL stays empty, and controlplane/trino_inputs.go still builds the console observer client from it (admin.NewTrinoCoordinatorClient(cell.CoordinatorURL, ...)). Effects:

  • Every 10s on the leader: Trino usage collection skipped: list queries failed error="GET /v1/query: Get \"/v1/query\": unsupported protocol scheme \"\"" — Trino usage metering is silently off for pool cells.
  • GET /api/v1/orgs/:id/trino for orgs on the pool cell answers available: false with no reason and connection: null even when state: ready, so the console never advertises the tenant host set by client_url ({database_name}.dw.dev.postwh.com).

prod-us (cell-001 with a blue backend) does not log the warning.

Likely fix: for a pool cell, point the observer at the pool's coordinator service (the blueprint's coordinator_service_port on the pool members, or the Gateway) and skip the cell-level observer when there is no URL rather than constructing one with an empty base. Metering should probably also fail loudly once per cell rather than warn every tick.

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions