Heap leak when kafka server stopps #1375
Unanswered
khudaibirdin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I'm trying to create API-Kafka gateway in Go. And I use kafka-go.
I organized internal message buffer with bufferised channel, where api handler writes messages received.
Kafka gorutine reads message channel and send to correct topic.
there's code examples:
main gorutine:
writer inition
message sending method
it works great while kafka is available.
When I specially stop kafka docker container my app begin to raise heap memory and crash
How to solve the problem. I'm sure that I also could make mistake
Beta Was this translation helpful? Give feedback.
All reactions