Skip to content

[receiver/fluentforward] Ensure all established connections are properly closed on shutdown#45145

Merged
atoulme merged 1 commit intoopen-telemetry:mainfrom
tokuhirom:feature/fluentforward-connection-close-on-shutdown-44433
Jan 1, 2026
Merged

[receiver/fluentforward] Ensure all established connections are properly closed on shutdown#45145
atoulme merged 1 commit intoopen-telemetry:mainfrom
tokuhirom:feature/fluentforward-connection-close-on-shutdown-44433

Conversation

@tokuhirom
Copy link
Contributor

Fixes shutdown behavior so that all existing connections are closed cleanly. Adds tests to verify proper connection closure.

Description

#44433

Link to tracking issue

Fixes #44433

Testing

Add the test case to check the connection closed.

Documentation

@tokuhirom tokuhirom requested review from a team and dmitryax as code owners December 24, 2025 01:54
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 24, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: tokuhirom / name: Tokuhiro Matsuno (de2d83e)

@github-actions github-actions bot added the first-time contributor PRs made by new contributors label Dec 24, 2025
@github-actions
Copy link
Contributor

Welcome, contributor! Thank you for your contribution to opentelemetry-collector-contrib.

Important reminders:

A maintainer will review your pull request soon. Thank you for helping make OpenTelemetry better!

@tokuhirom tokuhirom force-pushed the feature/fluentforward-connection-close-on-shutdown-44433 branch from d50d660 to 829517a Compare December 24, 2025 02:13
…rly closed on shutdown

Fixes shutdown behavior so that all existing connections are closed cleanly.
Adds tests to verify proper connection closure.

Fixes open-telemetry#44433
@tokuhirom tokuhirom force-pushed the feature/fluentforward-connection-close-on-shutdown-44433 branch from 829517a to de2d83e Compare December 24, 2025 02:15

func (s *server) closeAllConns() {
s.mu.Lock()
for c := range s.conns {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe clear the map too

Copy link
Contributor

Choose a reason for hiding this comment

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

no need, the connections will exit and delete from the map.

@atoulme atoulme merged commit 193e93d into open-telemetry:main Jan 1, 2026
310 of 312 checks passed
@otelbot
Copy link
Contributor

otelbot bot commented Jan 1, 2026

Thank you for your contribution @tokuhirom! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey. If you are getting started contributing, you can also join the CNCF Slack channel #opentelemetry-new-contributors to ask for guidance and get help.

@github-actions github-actions bot added this to the next release milestone Jan 1, 2026
seongpil0948 pushed a commit to seongpil0948/opentelemetry-collector-contrib that referenced this pull request Jan 10, 2026
…rly closed on shutdown (open-telemetry#45145)

Fixes shutdown behavior so that all existing connections are closed
cleanly. Adds tests to verify proper connection closure.

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

open-telemetry#44433

#### Link to tracking issue

Fixes open-telemetry#44433

#### Testing

Add the test case to check the connection closed.

#### Documentation

-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

After SIGHUP, events sent from existing connections are not processed by the collector

3 participants