Skip to content

[Metrics UI] Fix asynchronicity and error handling in Snapshot API#70503

Merged
Zacqary merged 2 commits intoelastic:masterfrom
Zacqary:69323-snapshot-crashfix
Jul 1, 2020
Merged

[Metrics UI] Fix asynchronicity and error handling in Snapshot API#70503
Zacqary merged 2 commits intoelastic:masterfrom
Zacqary:69323-snapshot-crashfix

Conversation

@Zacqary
Copy link
Copy Markdown
Contributor

@Zacqary Zacqary commented Jul 1, 2020

Summary

Fixes #69323

Some quirks with await placement in the Snapshot API led to some unhandled promise rejections if one of its requests failed, leading to a Kibana crash. requestGroupedNodes and requestNodeMetrics were started in parallel but being awaited sequentially, which seemed to confuse Node and lead to a fatal error.

Requests to the Snapshot API can now be successfully handled in a try...catch, when previously they would never reach the catch and just fatally error.

@Zacqary Zacqary added release_note:fix Feature:Metrics UI Metrics UI feature v8.0.0 Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.9.0 labels Jul 1, 2020
@Zacqary Zacqary requested a review from a team as a code owner July 1, 2020 19:31
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

Copy link
Copy Markdown
Member

@simianhacker simianhacker left a comment

Choose a reason for hiding this comment

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

LGTM

@Zacqary
Copy link
Copy Markdown
Contributor Author

Zacqary commented Jul 1, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@Zacqary Zacqary merged commit 515b5dc into elastic:master Jul 1, 2020
@Zacqary Zacqary deleted the 69323-snapshot-crashfix branch July 1, 2020 23:07
Zacqary added a commit to Zacqary/kibana that referenced this pull request Jul 1, 2020
…lastic#70503)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jul 2, 2020
* master: (46 commits)
  [Visualize] Add missing advanced settings and custom label for pipeline aggs (elastic#69688)
  Use dynamic: false for config saved object mappings (elastic#70436)
  [Ingest Pipelines] Error messages (elastic#70167)
  [APM] Show transaction rate per minute on Observability Overview page (elastic#70336)
  Filter out error when calculating a label (elastic#69934)
  [Visualizations] Each visType returns its supported triggers (elastic#70177)
  [Telemetry] Report data shippers (elastic#64935)
  Reduce SavedObjects mappings for Application Usage (elastic#70475)
  [Lens] fix dimension label performance issues (elastic#69978)
  Skip failing endgame tests (elastic#70548)
  [SIEM] Reenabling Cypress tests (elastic#70397)
  [SIEM][Security Solution][Endpoint] Endpoint Artifact Manifest Management + Artifact Download and Distribution (elastic#67707)
  [Security] Adds field mapping support to rule creation (elastic#70288)
  SECURITY-ENDPOINT: add fields for events to metadata document (elastic#70491)
  Fixed assertion in hybrid index pattern test to iterate through indices (elastic#70130)
  [SIEM][Exceptions] - Exception builder component (elastic#67013)
  [Ingest Manager] Rename data sources to package configs (elastic#70259)
  skip suites blocking es snapshot promomotion (elastic#70532)
  [Metrics UI] Fix asynchronicity and error handling in Snapshot API (elastic#70503)
  fix export response (elastic#70473)
  ...
Zacqary added a commit that referenced this pull request Jul 2, 2020
…API (#70503) (#70534)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Metrics UI Metrics UI feature release_note:fix Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.9.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Metrics UI] Too Many Buckets crashes Kibana when previewing inventory alerts

4 participants