Skip to content

[ML] Fix calendar creation during model snapshot restore#105421

Merged
jgowdyelastic merged 2 commits intoelastic:masterfrom
jgowdyelastic:fix-calendar-creation-during-model-snapshot-restore
Jul 13, 2021
Merged

[ML] Fix calendar creation during model snapshot restore#105421
jgowdyelastic merged 2 commits intoelastic:masterfrom
jgowdyelastic:fix-calendar-creation-during-model-snapshot-restore

Conversation

@jgowdyelastic
Copy link
Copy Markdown
Member

@jgowdyelastic jgowdyelastic commented Jul 13, 2021

An empty event_id is being added to the events being created when adding calendars during a snapshot restore.

Bug introduced here #83808
Looks like the empty id was added to work around incorrect esclient types.

Also adds a catch for any other unexpected errors when applying a snapshot

@jgowdyelastic jgowdyelastic added review release_note:fix :ml Feature:Anomaly Detection ML anomaly detection v8.0.0 v7.14.0 auto-backport Deprecated - use backport:version if exact versions are needed v7.15.0 labels Jul 13, 2021
@jgowdyelastic jgowdyelastic self-assigned this Jul 13, 2021
@jgowdyelastic jgowdyelastic requested a review from a team as a code owner July 13, 2021 12:09
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/ml-ui (:ml)

Copy link
Copy Markdown
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

Tested and LGTM

Copy link
Copy Markdown
Contributor

@alvarezmelissa87 alvarezmelissa87 left a comment

Choose a reason for hiding this comment

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

LGTM ⚡

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
ml 5.9MB 5.9MB +133.0B

History

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

cc @jgowdyelastic

@jgowdyelastic jgowdyelastic merged commit e300a75 into elastic:master Jul 13, 2021
@jgowdyelastic jgowdyelastic deleted the fix-calendar-creation-during-model-snapshot-restore branch July 13, 2021 18:11
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 13, 2021
)

* [ML] Fix calendar creation during model snapshot restore

* adding toast for unexpected errors
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 13, 2021
)

* [ML] Fix calendar creation during model snapshot restore

* adding toast for unexpected errors
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Backport successful

Status Branch Result
7.14
7.x

The backport PRs will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Jul 13, 2021
…105487)

* [ML] Fix calendar creation during model snapshot restore

* adding toast for unexpected errors

Co-authored-by: James Gowdy <jgowdy@elastic.co>
kibanamachine added a commit that referenced this pull request Jul 13, 2021
…105488)

* [ML] Fix calendar creation during model snapshot restore

* adding toast for unexpected errors

Co-authored-by: James Gowdy <jgowdy@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Deprecated - use backport:version if exact versions are needed Feature:Anomaly Detection ML anomaly detection :ml release_note:fix review v7.14.0 v7.15.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants