Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Old clusters don't error out on web interface (/web/cluster/alias/<cluster>) #1245

@tomkrouper

Description

@tomkrouper

If I go to the webui of the cluster foo that never existed, I'll get the error message.

{"Code":"ERROR","Message":"No cluster found for alias foo","Details":null}

If I got to the webui of the cluster bar that existed in the past but no longer has any hosts, I'll get an empty page.

The logs do show:

[martini] Started GET /web/cluster/alias/bar for <ipaddress>
[martini] Completed 200 OK in 236.58µs

Then a couple lines later, I see. The <fqdn> matches the information in the cluster_alias table.

2020-09-28 11:50:32 ERROR Unable to determine cluster name. clusterHint=<fqdn>:3306

I was able to test this on several "old" clusters, by finding them via:

select * from cluster_alias where last_registered < DATE(DATE_SUB(NOW(), INTERVAL 1 DAY)) order by 3

My guess is the forget should also remove the cluster_alias information or the webui should behave differently, I'm not sure which.

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