Skip to content

[Ingest Manager] Return ID when default output is found#75930

Merged
jen-huang merged 2 commits intoelastic:masterfrom
jen-huang:ingest/fix/75916
Aug 26, 2020
Merged

[Ingest Manager] Return ID when default output is found#75930
jen-huang merged 2 commits intoelastic:masterfrom
jen-huang:ingest/fix/75916

Conversation

@jen-huang
Copy link
Contributor

@jen-huang jen-huang commented Aug 25, 2020

Summary

Fixes #75916, from #75916 (comment):

The issue in the code occurs here: if a default output object has already been created, we return the output object without its ID (versus returning the full object with its ID when we need to create one). I suspect this can happen as a result of a race condition if /setup is hit in succession with the right timing. I'll verify reproduction steps during my fix.

Unfortunately, I was not able to find a way to reproduce the original behavior. We improved setup handling recently (#75372) so it's possible that this behavior was fixed (or occurrence reduced) as a side effect of those those general improvements. Either way, it's still good to fix the code logic here.

@jen-huang jen-huang added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.10.0 Team:Fleet Team label for Observability Data Collection Fleet team v7.9.1 labels Aug 25, 2020
@jen-huang jen-huang requested a review from a team August 25, 2020 21:17
@jen-huang jen-huang self-assigned this Aug 25, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

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

@jen-huang jen-huang merged commit 5447565 into elastic:master Aug 26, 2020
@jen-huang jen-huang deleted the ingest/fix/75916 branch August 26, 2020 17:55
jen-huang added a commit to jen-huang/kibana that referenced this pull request Aug 26, 2020
* Return ID when default output is found

* Fix typing
jen-huang added a commit to jen-huang/kibana that referenced this pull request Aug 26, 2020
* Return ID when default output is found

* Fix typing
jen-huang added a commit that referenced this pull request Aug 26, 2020
)

* Return ID when default output is found

* Fix typing
jen-huang added a commit that referenced this pull request Aug 26, 2020
)

* Return ID when default output is found

* Fix typing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.9.1 v7.10.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Ingest Manager] Error on updating system integration

4 participants