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

ui: fix linegraph render for large clusters #101952

Merged
merged 1 commit into from
Apr 20, 2023

Conversation

zachlite
Copy link
Contributor

We were feeding Math.min and Math.max very large arrays (length equal to ~10e7). These functions take variadic arguments, and the runtime can't handle that many arguments. As a result we blow the stack, causing uncaught range errors.

Instead, we'll use lodash min and max which are not variadic. Resolves #101377 Epic: None
Release note: None

Reproduction and Fix demonstrated on the command line:

Screenshot 2023-04-20 at 4 56 41 PM

We were feeding `Math.min` and `Math.max` very large arrays
(length equal to ~10e7). These functions take variadic arguments,
and the runtime can't handle that many arguments. As a result we
blow the stack, causing uncaught range errors.

Instead, we'll use lodash min and max which are not variadic.
Resolves cockroachdb#101377
Epic: None
Release note: None
@zachlite zachlite requested a review from a team April 20, 2023 20:57
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@zachlite zachlite added backport-23.1.0 backport-23.1.x Flags PRs that need to be backported to 23.1 labels Apr 20, 2023
Copy link
Collaborator

@dhartunian dhartunian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @xinhaoz)

@zachlite
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Apr 20, 2023

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.1.x Flags PRs that need to be backported to 23.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ui: overload dashboard fails to render on large clusters
3 participants