You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any exporter using exporterhelper batchsender will cause its generated_component_test.go -shutdown test to hang as Shutdown will never return if it is not started.
#### Description
Fix a bug where shutdown hangs if batch_sender exporter is not started.
The bug causes generated component tests to fail as well.
#### Link to tracking issue
Fixes#10306
Describe the bug
Any exporter using exporterhelper batchsender will cause its generated_component_test.go
-shutdown
test to hang as Shutdown will never return if it is not started.Control will be stuck at https://github.com/open-telemetry/opentelemetry-collector/blob/release/v0.102.x/exporter/exporterhelper/batch_sender.go#L231
@dmitryax I wonder if the generated shutdown test needs to start the exporter, or batchsender needs to handle unstarted batcher.
Steps to reproduce
Use batchsender with
WithBatcher
. Rungenerated_component_test.go
What did you expect to see?
Test passes
What did you see instead?
Test hangs
What version did you use?
v0.102.0
What config did you use?
Environment
Additional context
The text was updated successfully, but these errors were encountered: