Skip to content

Bind in register - #537

Merged
yaauie merged 10 commits into
logstash-plugins:mainfrom
yaauie:bind-in-register
Jul 6, 2026
Merged

Bind in register#537
yaauie merged 10 commits into
logstash-plugins:mainfrom
yaauie:bind-in-register

Conversation

@yaauie

@yaauie yaauie commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

This Pr is best reviewed commit-by-commit. Each commit passes tests with ELASTIC_STACK_VERSION=9.current, which currently resolves to 9.3.3.

Moves the binding of the port into #register (with the listening channel's auto-read disabled), and then activates the auto-read in #run after the MessageListener with access to the queue is available.

Note: migrates from a blocking Server#listen to Server#run(MessageListener) in order to remain descriptive.

Meta: elastic/logstash#18711

Comment thread CHANGELOG.md Outdated
Comment thread spec/support/logstash_test.rb Outdated
Comment thread lib/logstash/inputs/beats.rb Outdated
Comment thread lib/logstash/inputs/beats.rb Outdated
Comment thread src/main/java/org/logstash/beats/Server.java
Comment thread src/main/java/org/logstash/beats/Server.java
@yaauie
yaauie requested a review from andrewvc May 4, 2026 21:21
@yaauie yaauie linked an issue May 5, 2026 that may be closed by this pull request
yaauie and others added 2 commits June 29, 2026 09:55
Co-authored-by: Andrew Cholakian <andrew@andrewvc.com>
Co-authored-by: Rye Biesemeyer <yaauie@users.noreply.github.com>

@donoghuc donoghuc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Couple small parity things with http. Otherwise looks good!

Comment thread lib/logstash/inputs/beats.rb
Comment thread lib/logstash/inputs/beats.rb
Comment thread spec/support/logstash_test.rb Outdated
Co-authored-by: Cas Donoghue <cas.donoghue@gmail.com>
Co-authored-by: Rye Biesemeyer <yaauie@users.noreply.github.com>
@yaauie
yaauie requested a review from donoghuc July 2, 2026 21:44
@yaauie
yaauie dismissed andrewvc’s stale review July 6, 2026 17:31

concerns have been addressed.

@yaauie
yaauie merged commit cfc1ee6 into logstash-plugins:main Jul 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bind to port during #register

3 participants