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

Exclude non-persisted sessions from SO migration #96938

Merged

Conversation

pgayvallet
Copy link
Contributor

@pgayvallet pgayvallet commented Apr 13, 2021

Summary

Related to #96131

Exclude non persisted (search-session.persisted: false) search sessions (type: 'search-session') during SO migration

Checklist

@pgayvallet pgayvallet requested review from Dosant and rudolf April 13, 2021 10:16
@pgayvallet pgayvallet added release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.12.1 v7.13.0 labels Apr 13, 2021
Copy link
Contributor

@rudolf rudolf left a comment

Choose a reason for hiding this comment

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

Haven't tested it, but code lgtm

Copy link
Contributor

@Dosant Dosant left a comment

Choose a reason for hiding this comment

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

Tested, looks good,
I created a 7.12.0 cluster locally and generated sessions there.
Then I run from the source of the branch and tested that only "persisted:true" sessions were migrated to the new kibana index.
I tested only the default migration mechanism (I assume this was v2)

Just a note: old sessions are not deleted. They stay in the old index. I assume this is expected

@pgayvallet pgayvallet marked this pull request as ready for review April 13, 2021 11:21
@pgayvallet pgayvallet requested a review from a team as a code owner April 13, 2021 11:21
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

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

@pgayvallet pgayvallet merged commit bfd5b7b into elastic:master Apr 13, 2021
pgayvallet added a commit to pgayvallet/kibana that referenced this pull request Apr 13, 2021
pgayvallet added a commit to rudolf/kibana that referenced this pull request Apr 13, 2021
pgayvallet added a commit that referenced this pull request Apr 13, 2021
…sted sessions (#96938) (#96892)

* Migrations v2 ignore fleet agent events (#96690)

* migrationsv2: ignore fleet agent events and tsvb telemetry

* migrationsv1: ignore tsvb-validation-telemetry

* Skip fleet test that depends on fleet-agent-events

* Fix typescript errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/core/server/saved_objects/migrationsv2/integration_tests/actions.test.ts

* Correctly fix merge conflicts

* Skip failing fleet-agent-events tests

* Skip security solution endpoint telemetry tests depending on fleet-agent-events so's

* Exclude non-persisted sessions from SO migration (#96938)

(cherry picked from commit bfd5b7b)

* use `any` for estypes.QueryContainer

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Pierre Gayvallet <pierre.gayvallet@gmail.com>
@rudolf rudolf added the project:ResilientSavedObjectMigrations Reduce Kibana upgrade failures by making saved object migrations more resilient label Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project:ResilientSavedObjectMigrations Reduce Kibana upgrade failures by making saved object migrations more resilient release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.12.1 v7.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants