Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui: handle latency not defined on network page
Previously when a cluster with multiple nodes had a node stopped and then another node quickly started, the network page would crash. This was due to the node object holding the latency value being undefined and the ui trying to read this key when that was undefined. This occurs when a node is in an `UNAVAILABLE` state. This patch resolves the issue by being more defensive on the front end by safely attempting to access latency and if it is undefined, set the value to 0. The existing code is able to handle this case afterward and will eventually set the user friendly latency status to `--`. Resolves: #59322 Release note (ui change): Fixes a bug where a node in the `UNAVAILABLE` state will not have latency defined and cause the network page to crash.
- Loading branch information