Skip to content

insights: cannot read properties of undefined (reading 'split') #99539

@gtr

Description

@gtr

Describe the problem

A type error was encountered on the SQL Activity page on serverless.

To Reproduce

I'm unable to view the replay but it appears that soon after a route change to /insights, the user encountered the following error:

TypeError: Cannot read properties of undefined (reading 'split')
  at q.isOptionSelected @ https://cockroachlabs.cloud/assets/admin-ui-22-2.3f732429d80a4fa60862.js:1495:5832
  at <anonymous> @ https://cockroachlabs.cloud/assets/admin-ui-22-2.3f732429d80a4fa60862.js:1495:7241
  at Array.map @ <anonymous>
  at q.render @ https://cockroachlabs.cloud/assets/admin-ui-22-2.3f732429d80a4fa60862.js:1495:7197
  at Dl @ https://cockroachlabs.cloud/assets/common.29615ddb65bbd14ef358.js:2498:68424
  at Nl @ https://cockroachlabs.cloud/assets/common.29615ddb65bbd14ef358.js:2498:68203
  at Ji @ https://cockroachlabs.cloud/assets/common.29615ddb65bbd14ef358.js:2502:10265
  at fr @ https://cockroachlabs.cloud/assets/common.29615ddb65bbd14ef358.js:2502:996
  at He @ https://cockroachlabs.cloud/assets/common.29615ddb65bbd14ef358.js:2502:924
  at tn @ https://cockroachlabs.cloud/assets/common.29615ddb65bbd14ef358.js:2502:774

Based on the stack trace, it most likely has to do with either the txn or stmt insight selectors. isOptionSelected suggests it may be from a column selector.

Additional data / screenshots

Environment:

  • CockroachDB version: Cockroach Serverless
  • Server OS: Mac OS X 10.12.7

Jira issue: CRDB-25920

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cluster-observabilityRelated to cluster observabilityC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions