Skip to content

[8.14](backport #38953) Fix awscloudwatch worker allocation#39164

Merged
faec merged 1 commit into8.14from
mergify/bp/8.14/pr-38953
Apr 24, 2024
Merged

[8.14](backport #38953) Fix awscloudwatch worker allocation#39164
faec merged 1 commit into8.14from
mergify/bp/8.14/pr-38953

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Apr 23, 2024

Fix a bug in cloudwatch worker allocation that could cause data loss (#38918).

The previous behavior wasn't really tested, since worker tasks were computed in cloudwatchPoller's polling loop which required live AWS connections. So in addition to the basic logical fix, I did some refactoring to cloudwatchPoller that makes the task iteration visible to unit tests.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Related issues


This is an automatic backport of pull request #38953 done by [Mergify](https://mergify.com).

Fix a bug in cloudwatch worker allocation that could cause data loss (#38918).

The previous behavior wasn't really tested, since worker tasks were computed in cloudwatchPoller's polling loop which required live AWS connections. So in addition to the basic logical fix, I did some refactoring to cloudwatchPoller that makes the task iteration visible to unit tests.

(cherry picked from commit deece39)
@mergify mergify bot requested a review from a team as a code owner April 23, 2024 16:29
@mergify mergify bot added the backport label Apr 23, 2024
@mergify mergify bot assigned faec Apr 23, 2024
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Apr 23, 2024
@botelastic
Copy link
Copy Markdown

botelastic bot commented Apr 23, 2024

This pull request doesn't have a Team:<team> label.

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Duration: 142 min 15 sec

❕ Flaky test report

No test was executed to be analysed.

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@faec faec enabled auto-merge (squash) April 23, 2024 19:00
@faec faec requested a review from kaiyan-sheng April 23, 2024 19:00
@faec faec merged commit 56c2828 into 8.14 Apr 24, 2024
@faec faec deleted the mergify/bp/8.14/pr-38953 branch April 24, 2024 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport needs_team Indicates that the issue/PR needs a Team:* label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants