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
The problem is that during shutdown the otelcol no longer looks for updates on the asyncErrorChannel, and if any component will try to write to that channel will get into a deadlock.
func (r*receiver) Start(_ context.Context, _ component.Host) error {
r.server:=&http.Server{
Addr: ":8080",
Handler: myHandler,
}
gofunc() {
iferr:=r.server.ListenAndServe(); err!=nil {
// This is a small bug since err == http.ErrServerClosed is expected.r.settings.ReportStatus(component.NewFatalErrorEvent(err))
}
}()
returnnil
}
func (r*receiver) Shutdown(context.Context) error {
ifr.server==nil {
returnnil
}
returnr.server.Close()
}