-
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
Fix broken usages of bulkCreate
#75597
Fix broken usages of bulkCreate
#75597
Conversation
@elastic/siem @elastic/endpoint-app-team I found another potentially problematic usage of kibana/x-pack/plugins/case/server/services/user_actions/index.ts Lines 65 to 75 in bcca933
I'm not sure where Edit: I dug into this one on my own. The |
@elastic/ml-ui I found another potentially problematic usage of kibana/x-pack/plugins/ml/server/models/data_recognizer/data_recognizer.ts Lines 677 to 693 in bcca933
I'm not sure where Edit: I dug into this one on my own. The |
@elastic/kibana-core-ui I found another potentially problematic usage of kibana/src/plugins/home/public/application/components/tutorial/saved_objects_installer.js Lines 58 to 68 in bcca933
I'm not sure where Edit: I dug into this one on my own -- the |
I manually created an index pattern for the |
When I look at the metricbeat index pattern saved object it looks very strange with a
|
💚 Build SucceededBuild metrics
To update your PR or re-run it, just comment with: |
@jportner I retested your PR but took a slightly different path this time. I started your PR branch from kibana, not from x-pack and I downloaded the OSS version of filebeat (not default dist of metricbeat) from this morning's unified master build; https://snapshots.elastic.co/8.0.0-edd1f0a6/downloads/beats/filebeat/filebeat-oss-8.0.0-SNAPSHOT-linux-x86.tar.gz I ran
But just like my previous test with metricbeat, Kibana Index Patterns shows 0 fields. And going to discover logged errors;
|
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.
LGTM - Regarding my last test with OSS Kibana and OSS filebeat. After I start filebeat and have docs in the index then the Index Page does show the fields and Discover works fine.
It might be a slight regression that the Index Patterns page now doesn't work properly until after there are docs in the index? I'll have to try to reproduce that on other builds to check. I'll file a new issue if that's the case.
All my tests passed on master. I think this is good to backport. |
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
…5597) (elastic#75793)" This reverts commit 6e82885.
…writing a document (#76280) * Revert "Fix more broken usages of `bulkCreate` (#76005) (#76131)" This reverts commit 44a017b. * Revert "Filter saved object `version` during legacy import (#75597) (#75793)" This reverts commit 6e82885. * Revert "[7.9] [Saved objects] Add support for version on create & bulkCreate when overwriting a document (#75172) (#75498)" This reverts commit 00836e5.
Summary
A recent change to the saved object
bulkCreate
operation allowed consumers to specify an object'sversion
to take advantage of Elasticsearch's optimistic concurrency control (when overwriting existing objects). However, some consumer usages ofbulkCreate
were not updated and can accidentally pass in an invalid version. In these cases, theversion
needs to be filtered from the source data before executingbulkCreate
.Resolves #75596.