-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
v1 migrations: drop fleet-agent-events during a migration #92188
Conversation
@@ -124,6 +124,8 @@ const getSavedObjectTypes = ( | |||
'7.10.0': migrateAgentActionToV7100(encryptedSavedObjects), | |||
}, | |||
}, | |||
// TODO: Remove this saved object type. Core will drop any saved objects of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because we're dropping any fleet-agent-events
it would be critical if we started saving something there that was important to keep. As a follow-up to this PR we should remove this saved object type from fleet and once that's done I can add fleet-agent-events
to a denylist inside core so that future plugins don't accidentally start using this saved object.
Pinging @elastic/fleet (Team:Fleet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with migrations.enableV2: false
and works as expected it drop agent events
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
Summary
Fixes #91869
This will drop
fleet-agent-events
during v1 migrations.v2 migrations use Elasticsearch to reindex all documents so we're not currently able to drop saved objects during the migration itself although this will change in #86247. However, this also means that v2 migrations won't be affected by large numbers of fleet-agent-events in 7.12.
So for 7.12 this will only benefit customers who switch off v2 migrations.
Checklist
Delete any items that are not applicable to this PR.
For maintainers