Skip to content
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

[Bug Report]: Memory leak when producer error #602

Open
1 task done
JotaDobleEse opened this issue Nov 12, 2024 · 0 comments · May be fixed by #605
Open
1 task done

[Bug Report]: Memory leak when producer error #602

JotaDobleEse opened this issue Nov 12, 2024 · 0 comments · May be fixed by #605
Labels
bug Something isn't working

Comments

@JotaDobleEse
Copy link

Prerequisites

  • I have searched issues to ensure it has not already been reported

Description

Hello,
I have a memory leak in my project and I've detected it inside Kafkaflow when my kafka broker throws a connection exception. I'm using synchronous version of "Produce()" and I think the TaskCompletionSource used in this method is not complete because Confluent.Kafka is throwing an exception that is not catched.

I've seen this in InternalProduce method:
image

And I do this change to try to fix and I don't have the problem anymore:
image

Steps to reproduce

I have the problem with kafka in aws, I didn't know how to reproduce in my local.

Expected behavior

End Produce method and show error in DeliveryReport

Actual behavior

TaskCompletionSource not complete and not release resources

KafkaFlow version

3.0.10

@JotaDobleEse JotaDobleEse added the bug Something isn't working label Nov 12, 2024
@JotaDobleEse JotaDobleEse linked a pull request Nov 28, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

1 participant