-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
product.Dispose() callbackTask.Wait() error #104
Comments
Hi, What is the InnerException and when does it occurs (when closing your app with alive broker, after a deconnexion...)? Which version do you use (latest prerelease solve many bugs) |
cannot see the detail error,only show this: callbackTask.Wait();//error:An unhandled exception of type 'System.AggregateException' occurred in , |
The InnerException is ThreadAbortException. |
@YosefFixler Are you seeing any (other) console output? E.g., an assert or similar |
Is this maybe one of the callbacks throwing an exception? |
I forgot the aggregate exception stack trace: What I saw is the exception occurs at RdKafkaLib rd_kafka_poll() when the cancellation token is cancelled. |
Debugging the code I find that the ThreadAbortException exception is thrown regardless to the consumer disposing. It happens before inside RdKafkaLib StartCallbackTask. |
Hi Guys is there any news about this issue? |
Any updates? We got the same issue. I believe the problem is due to callbackTask is in FAULT state and wait() throws an exception, the following fixes the problem.
|
product.Dispose()
An unhandled exception of type 'System.AggregateException' occurred in mscorlib.dll
protected virtual void Dispose(bool disposing)
{
callbackCts.Cancel();
callbackTask.Wait();//error:An unhandled exception of type 'System.AggregateException' occurred in mscorlib.dll
The text was updated successfully, but these errors were encountered: