[Bug Report]: FileLoadException on ConsumerWorker execution is silently ignored #590
Open
1 task done
Labels
bug
Something isn't working
Prerequisites
Description
If the
ConsumerWorker
background task fails to start, it is silently ignored without any exception or logs to the KafkaFlow users.In my particular case, the background task fails with TypeLoadException due to a missing binding redirect, leaving the background task in a faulted state - it will appear to the users as if the application is not consuming, and no middlewares will be executed.
I ended up resolving the root cause by adding a binding redirect, but I think that KafkaFlow should let the user know something has failed in order to assist troubleshooting.
Steps to reproduce
KafkaFlow is expecting Microsoft.Bcl.AsyncInterfaces version 6.0.0, and as such will throw a TypeLoadException due to failed assembly binding.
Expected behavior
I expected that KafkaFlow would report an error through an exception or through an error log.
Actual behavior
Silently fails the background task on
ConsumerWorker
. After inspection on debug, the following exception is observed:Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
KafkaFlow version
3.0.10
The text was updated successfully, but these errors were encountered: