Skip to content

[Bug] Schema Registry Overview card shows "Not configured" intermittently despite SR being properly configured #2422

@haoyukongTrackunit

Description

@haoyukongTrackunit

Description

The Schema Registry status card on the Console Overview page intermittently shows "Not configured" even when Schema Registry is properly configured and fully functional (messages are being deserialised correctly using schemas from the registry).

On the same page load, refreshing causes it to alternate between showing the correct count (e.g. 963 schemas) and "Not configured". This is a pure UI reporting bug — the underlying Schema Registry connection works fine.

Root Cause (suspected)

In frontend/src/state/backend-api.ts, the getSchemaRegistryInfo call appears to be gated behind a api.userData?.canViewSchemas permission check. When that flag evaluates to falsy on certain renders/refreshes, the request is skipped entirely, leaving schemaRegistry as null, which causes the Overview card to display "Not configured".

Steps to Reproduce

  1. Configure Redpanda Console with a valid Schema Registry URL (e.g. Confluent-compatible kafka-cp-schema-registry).
  2. Navigate to the Console Overview page.
  3. Observe the Schema Registry card — it may correctly show the schema count (e.g. "963 schemas").
  4. Refresh the page.
  5. The card now shows "Not configured".
  6. Refresh again — it may show the correct count once more.

The flicker is consistent and reproducible across page refreshes in the same session.

Expected Behaviour

The Schema Registry card on the Overview page should consistently display the correct status (schema count and connectivity) whenever SR is configured, regardless of how many times the page is refreshed.

Actual Behaviour

The card alternates between showing the correct schema count and "Not configured" across page refreshes, even though:

  • Schema Registry is properly configured in Console's Helm values
  • Messages in the topic viewer are being correctly deserialised using schemas from the registry
  • The Schema Registry endpoint is reachable and healthy

Environment

Additional Context

  • The schema count of 963 is correct when the card does load — confirming the SR endpoint itself is healthy.
  • The topic message viewer works correctly (Avro schemas are resolved), confirming the SR connection from Console is functional.
  • This appears to be a race condition or permission-flag timing issue in the frontend state management, not a network/infrastructure problem.
  • Related to (but independent from): [Bug] Avro bytes fields rendered as Latin-1 codepoint strings instead of Base64 since v3.7.0 #2421

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