driskell / log-courier

The Log Courier Suite is a set of lightweight tools created to ship and process log files speedily and securely, with low resource usage, to Elasticsearch or Logstash instances.
Other
419 stars 107 forks source link

Receiver reload can cause panic #400

Closed driskell closed 1 year ago

driskell commented 1 year ago
Mar 30 11:11:54 - log-carver[799]: panic: interface conversion: transports.ReceiverFactory is *courier.ReceiverFactory, not *tcp.ReceiverFactory
Mar 30 11:11:54 - log-carver[799]: goroutine 31 [running]:
Mar 30 11:11:54 - log-carver[799]: github.com/driskell/log-courier/lc-lib/transports/tcp.(*ReceiverFactory).ShouldRestart(0xa6b4a0?, {0xc3b7d0?, 0xc0033c66
Mar 30 11:11:54 - log-carver[799]: /builddir/build/BUILD/log-courier-11300/lc-lib/transports/tcp/receiverfactory.go:84 +0x57
Mar 30 11:11:54 - log-carver[799]: github.com/driskell/log-courier/lc-lib/receiver.(*Pool).updateReceivers(0xc001025200, 0xc001967cb8?)
Mar 30 11:11:54 - log-carver[799]: /builddir/build/BUILD/log-courier-11300/lc-lib/receiver/pool.go:356 +0x37b
Mar 30 11:11:54 - log-carver[799]: github.com/driskell/log-courier/lc-lib/receiver.(*Pool).Run(0xc001025200)
Mar 30 11:11:54 - log-carver[799]: /builddir/build/BUILD/log-courier-11300/lc-lib/receiver/pool.go:129 +0x12cd
Mar 30 11:11:54 - log-carver[799]: github.com/driskell/log-courier/lc-lib/core.(*Pipeline).run(0x0?, 0x0?, 0x0?)
Mar 30 11:11:54 - log-carver[799]: /builddir/build/BUILD/log-courier-11300/lc-lib/core/pipeline.go:168 +0x53
Mar 30 11:11:54 - log-carver[799]: created by github.com/driskell/log-courier/lc-lib/core.(*Pipeline).initRoutines
Mar 30 11:11:54 - log-carver[799]: /builddir/build/BUILD/log-courier-11300/lc-lib/core/pipeline.go:153 +0x4f0