Skip to content

[libbeat] Remove "producer cancel" features from queue API#39760

Merged
faec merged 5 commits intoelastic:mainfrom
faec:remove-producer-cancel
May 31, 2024
Merged

[libbeat] Remove "producer cancel" features from queue API#39760
faec merged 5 commits intoelastic:mainfrom
faec:remove-producer-cancel

Conversation

@faec
Copy link
Copy Markdown
Contributor

@faec faec commented May 29, 2024

"Producer cancel" is a feature that allows closing queue producers to also cancel any pending events created by that producer that have not yet been sent to a queue reader. It was introduced as a small part of a very large refactor in 2017, but current code doesn't depend on it for anything. Since this feature adds considerable complexity to the queue API and implementation, this PR removes the feature and associated helpers.

This PR should cause no user-visible behavior change.

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.

@faec faec added cleanup Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team labels May 29, 2024
@faec faec self-assigned this May 29, 2024
@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 May 29, 2024
@faec faec marked this pull request as ready for review May 29, 2024 15:47
@faec faec requested a review from a team as a code owner May 29, 2024 15:47
@faec faec requested review from belimawr and fearful-symmetry May 29, 2024 15:47
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented May 29, 2024

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @faec? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-v8./d.0 is the label to automatically backport to the 8./d branch. /d is the digit

eventWaitGroup *sync.WaitGroup

// closeRef signal propagation support
guardStartSigPropagation sync.Once
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

These variables aren't related to producer cancel, but they caused a linter error because they're unused.

@faec faec merged commit 074c1dd into elastic:main May 31, 2024
@faec faec deleted the remove-producer-cancel branch May 31, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants