Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cluster-ui: skip undefined regions on database pages #106778

Merged
merged 1 commit into from Jul 17, 2023

Commits on Jul 14, 2023

  1. cluster-ui: skip undefined regions on database pages

    This patch skips `undefined` regions on the databases pages. The
    `undefined` behaviour occurs when we try to match a database's node IDs
    (i.e. the nodes with ranges that contain data belong to one of the
    database's tables) from the database details endpoint, to nodes' region
    information from the nodes endpoint.
    
    The nodes endpoint is authoritative and is refreshed at a regular
    interval. However, the database details endpoint is only fetched once on
    page load, and it's node information comes from a cache, leading to the
    potential of stale data (this information is authoritative in 23.1, but
    not in 22.2).
    
    Consequently when trying to match cached node IDs with recent node
    regions information, we can come across behaviour where we try to get
    region information for a node ID that is no longer valid (i.e. in the
    case of a decommissioned node), resulting in `undefined` and surfacing
    outdated node information.
    
    This change ensures that when we encounter such occurrences, we avoid
    displaying them in the console.
    
    Release note (bug fix): Avoid displaying `undefined` regions on the
    databases pages.
    THardy98 committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    cba8f3e View commit details
    Browse the repository at this point in the history