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

libbeat/publisher/pipeline: fix Client.Close #19864

Merged
merged 1 commit into from
Jul 22, 2020

Conversation

axw
Copy link
Member

@axw axw commented Jul 14, 2020

What does this PR do?

Fix a regression in clientCloseWaiter, so that when a WaitClose timeout is specified it can be interrupted by all events being acknowledged. Set the "closing" variable to true, not false, upon signalling the waiter to close.

Why is it important?

Fixes a regression in WaitClose behaviour.

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.

How to test this PR locally

go test ./libbeat/publisher/pipeline

Related issues

#19514

Set the "closing" variable to true, not false,
upon signalling the waiter to close.
@axw axw added bug Team:Services (Deprecated) Label for the former Integrations-Services team v7.9.0 labels Jul 14, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-services (Team:Services)

@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 14, 2020
@axw axw requested a review from urso July 14, 2020 02:37
@andresrc andresrc added [zube]: Inbox needs_team Indicates that the issue/PR needs a Team:* label labels Jul 14, 2020
@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jul 14, 2020
@andresrc andresrc added [zube]: In Review needs_team Indicates that the issue/PR needs a Team:* label and removed [zube]: Inbox labels Jul 14, 2020
@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jul 14, 2020
@axw axw merged commit f543705 into elastic:master Jul 22, 2020
@axw axw deleted the fix-clientwaitcloser branch July 22, 2020 03:43
@axw axw added the v7.10.0 label Jul 22, 2020
melchiormoulin pushed a commit to melchiormoulin/beats that referenced this pull request Oct 14, 2020
Set the "closing" variable to true, not false,
upon signalling the waiter to close.
@zube zube bot removed the [zube]: Done label Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Team:Services (Deprecated) Label for the former Integrations-Services team v7.9.0 v7.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants