Skip to content

[Console] autocomplete_entities API crashes Kibana when response size is too big #144310

@dgieselaar

Description

@dgieselaar

When a user navigates to the Console, the Console app calls out to the /api/console/autocomplete_entities API to retrieve a list of resources for the purpose of autocompletion. If the response size (from presumably ES) is too big, it will cause the Kibana instance to restart. Here's the error that precedes the restart:

CleanShot 2022-11-01 at 12 04 16@2x

The error can be seen here (internal): https://monitoring-oblt.elastic.dev/app/apm/services/kibana/errors/8fa25e944ed07fec1e4f5d32b97e52c0?comparisonEnabled=true&environment=ENVIRONMENT_ALL&kuery=&rangeFrom=2022-11-01T10:04:48.915Z&rangeTo=2022-11-01T11:04:51.163Z&serviceGroup=&offset=1d&transactionType=request

This issue is reproducible by going to either https://dev-oblt.elastic.dev/ or https://edge-oblt.elastic.dev/, going to the Console, turning ON field autocompletion in Console's settings, and waiting until the /api/console/autocomplete_entities request fails. After that any request will return 503 while Kibana is restarting.

Metadata

Metadata

Assignees

Labels

Team:Kibana ManagementDev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions