-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Description
Component(s)
exporter/prometheus
Describe the issue you're reporting
A few instances of failures:
- https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/11616181947/job/32348529258#step:8:54
- https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/11633600629/job/32399072258#step:8:282
=== FAIL: . TestPrometheusExporter (0.00s)
prometheus_test.go:87:
Error Trace: D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/exporter/prometheusexporter/prometheus_test.go:87
Error: Received unexpected error:
close tcp 127.0.0.1:8999: use of closed network connection
Test: TestPrometheusExporter
=== FAIL: . TestPrometheusExporter (re-run 1) (0.01s)
prometheus_test.go:87:
Error Trace: D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/exporter/prometheusexporter/prometheus_test.go:87
Error: Received unexpected error:
close tcp 127.0.0.1:8999: use of closed network connection
Test: TestPrometheusExporter
DONE 2 runs, 73 tests, 2 failures in 361.711s
In quick glance this seems likely because the server using the port is actually launched in a goroutine and the port can be closed by shutdown before the server starts.