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

Fix renaming cloud metadata processor fields #13808

Merged
merged 2 commits into from
Mar 3, 2020

Conversation

jalaziz
Copy link
Contributor

@jalaziz jalaziz commented Sep 26, 2019

Clone the underlying metadata to allow renaming sub-fields under cloud
that are injected by the cloud metadata processor.

Without cloning the injected metadata, rename and possibly other processors fail to operate on the sub-fields of the injected cloud field.

Further details can be found in the community post: https://discuss.elastic.co/t/cannot-rename-sub-fields-of-cloud-metadata-added-via-add-cloud-metadata/201157.

@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

1 similar comment
@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@jalaziz
Copy link
Contributor Author

jalaziz commented Nov 4, 2019

Any chance of this getting reviewed soon?

@kaiyan-sheng
Copy link
Contributor

Sorry for the delay. This looks good to me (besides the conflict). @adriansr Could you take a look as well please?

Clone the underlying metadata to allow renaming sub-fields under cloud
that are injected by the cloud metadata processor.
@jalaziz
Copy link
Contributor Author

jalaziz commented Nov 13, 2019

Rebased to fix the conflict.

@kaiyan-sheng kaiyan-sheng added the needs_backport PR is waiting to be backported to other branches. label Nov 13, 2019
Copy link
Contributor

@adriansr adriansr left a comment

Choose a reason for hiding this comment

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

LGTM

I suggest someone from Beats core also have a look

Copy link
Member

@andrewkroh andrewkroh left a comment

Choose a reason for hiding this comment

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

LGTM. This probably also prevents a concurrent map modification panic.

@andrewkroh
Copy link
Member

jenkins, test this

@kaiyan-sheng kaiyan-sheng self-assigned this Feb 28, 2020
@kaiyan-sheng kaiyan-sheng added the Team:Platforms Label for the Integrations - Platforms team label Feb 28, 2020
@kaiyan-sheng
Copy link
Contributor

jenkins, test this please

kaiyan-sheng added a commit that referenced this pull request Mar 6, 2020
…ds (#16770)

* Fix renaming cloud metadata processor fields (#13808)

Clone the underlying metadata to allow renaming sub-fields under cloud
that are injected by the cloud metadata processor.

(cherry picked from commit 6785901)

Co-authored-by: Jameel Al-Aziz <247849+jalaziz@users.noreply.github.com>
jsoriano pushed a commit to jsoriano/beats that referenced this pull request May 7, 2020
Clone the underlying metadata to allow renaming sub-fields under cloud
that are injected by the cloud metadata processor.

(cherry picked from commit 6785901)
@jsoriano jsoriano added the v6.8.9 label May 7, 2020
@jsoriano jsoriano added the v7.6.3 label May 7, 2020
jsoriano pushed a commit to jsoriano/beats that referenced this pull request May 7, 2020
Clone the underlying metadata to allow renaming sub-fields under cloud
that are injected by the cloud metadata processor.

(cherry picked from commit 6785901)
@jsoriano
Copy link
Member

jsoriano commented May 7, 2020

LGTM. This probably also prevents a concurrent map modification panic.

Yep, #17968 seems to be fixed by this. I have opened backports for 7.6 and 6.8 too.

jsoriano added a commit that referenced this pull request May 8, 2020
Clone the underlying metadata to allow renaming sub-fields under cloud
that are injected by the cloud metadata processor.

(cherry picked from commit 6785901)

Co-authored-by: Jameel Al-Aziz <247849+jalaziz@users.noreply.github.com>
jsoriano added a commit that referenced this pull request May 8, 2020
Clone the underlying metadata to allow renaming sub-fields under cloud
that are injected by the cloud metadata processor.

(cherry picked from commit 6785901)

Co-authored-by: Jameel Al-Aziz <247849+jalaziz@users.noreply.github.com>
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…#18356)

Clone the underlying metadata to allow renaming sub-fields under cloud
that are injected by the cloud metadata processor.

(cherry picked from commit 3f2565b)

Co-authored-by: Jameel Al-Aziz <247849+jalaziz@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants