Skip to content

Fix timer failure#27006

Merged
andrewvc merged 10 commits intoelastic:masterfrom
andrewvc:fix-timer-failure
Jul 22, 2021
Merged

Fix timer failure#27006
andrewvc merged 10 commits intoelastic:masterfrom
andrewvc:fix-timer-failure

Conversation

@andrewvc
Copy link
Copy Markdown
Contributor

@andrewvc andrewvc commented Jul 21, 2021

What does this PR do?

Fixes #26205

Fixes deadlocks in heartbeat scheduler.

No changelog needed because this bug only exists in go 1.16+ and v7.14.0 is the first affected beats version

The underlying cause is a likely bug in golang, reported here by myself here: golang/go#47329

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.

Author's Checklist

Try replacing the NewTimer call with Reset per the inline comment and validate that the test goes red.

@andrewvc andrewvc added bug Heartbeat Team:obs-ds-hosted-services Label for the Observability Hosted Services team v7.14.0 labels Jul 21, 2021
@andrewvc andrewvc self-assigned this Jul 21, 2021
@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Jul 21, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Jul 21, 2021

💚 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

  • Start Time: 2021-07-21T22:45:34.575+0000

  • Duration: 62 min 30 sec

  • Commit: 655918b

Test stats 🧪

Test Results
Failed 0
Passed 3346
Skipped 82
Total 3428

Trends 🧪

Image of Build Times

Image of Tests

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 3346
Skipped 82
Total 3428

Copy link
Copy Markdown
Member

@vigneshshanmugam vigneshshanmugam left a comment

Choose a reason for hiding this comment

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

Tested it on both 1.16.3 and 1.16.6 and the fix worked fine.

Just adding some details, the change here - https://github.com/elastic/beats/pull/27006/files#diff-ff3b342ecb17b567202603aa74535061cc20edd20bd8769a60c37525f9eed984R91 did not affect anything.

@urso
Copy link
Copy Markdown

urso commented Jul 22, 2021

The fix made it into the 1.16.7 milestone. I wonder who is first, the milestone, or the next Beats release.

@andrewvc andrewvc marked this pull request as ready for review July 22, 2021 14:28
@andrewvc andrewvc requested a review from a team as a code owner July 22, 2021 14:28
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/uptime (Team:Uptime)

@andrewvc andrewvc merged commit 2f62e8f into elastic:master Jul 22, 2021
@andrewvc
Copy link
Copy Markdown
Contributor Author

@Mergifyio backport 7.x

@andrewvc
Copy link
Copy Markdown
Contributor Author

@Mergifyio backport 7.14

@andrewvc
Copy link
Copy Markdown
Contributor Author

@urso still backporting it to make sure 7.14.0 isn't broken

@andrewvc andrewvc deleted the fix-timer-failure branch July 22, 2021 14:32
mergify bot pushed a commit that referenced this pull request Jul 22, 2021
Fixes #26205

Fixes deadlocks in heartbeat scheduler.

No changelog needed because this bug only exists in go 1.16+ and v7.14.0 is the first affected beats version

The underlying cause is a likely bug in golang, reported here by myself here: golang/go#47329

(cherry picked from commit 2f62e8f)
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 22, 2021

Command backport 7.x: success

Backports have been created

mergify bot pushed a commit that referenced this pull request Jul 22, 2021
Fixes #26205

Fixes deadlocks in heartbeat scheduler.

No changelog needed because this bug only exists in go 1.16+ and v7.14.0 is the first affected beats version

The underlying cause is a likely bug in golang, reported here by myself here: golang/go#47329

(cherry picked from commit 2f62e8f)
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 22, 2021

Command backport 7.14: success

Backports have been created

andrewvc added a commit that referenced this pull request Jul 22, 2021
Fixes #26205

Fixes deadlocks in heartbeat scheduler.

No changelog needed because this bug only exists in go 1.16+ and v7.14.0 is the first affected beats version

The underlying cause is a likely bug in golang, reported here by myself here: golang/go#47329

(cherry picked from commit 2f62e8f)

Co-authored-by: Andrew Cholakian <andrew@andrewvc.com>
andrewvc added a commit that referenced this pull request Jul 22, 2021
Fixes #26205

Fixes deadlocks in heartbeat scheduler.

No changelog needed because this bug only exists in go 1.16+ and v7.14.0 is the first affected beats version

The underlying cause is a likely bug in golang, reported here by myself here: golang/go#47329

(cherry picked from commit 2f62e8f)

Co-authored-by: Andrew Cholakian <andrew@andrewvc.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Heartbeat Team:obs-ds-hosted-services Label for the Observability Hosted Services team v7.14.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Heartbeat test failing on CI

4 participants