-
Notifications
You must be signed in to change notification settings - Fork 626
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
Memory leak with AsyncRabbitTemplate #2673
Comments
I’m on sick day off, so if you have an idea how to fix, feel free to contribute it then! I’ll be happy to review when I’m back. |
I wish you a speedy recovery ! Okay I will try to fix it :) |
Hi @tetrade ! I'm back from leave and ready to tackle this. Thanks |
Fixes: #2673 When `AsyncRabbitTemplate#sendAndReceive()` is called a got reply, nothing is clearing or canceling a `RabbitFuture.timeoutTask` * Fix `RabbitFuture` overriding `complete(T value)` and `completeExceptionally(Throwable ex)` and call `this.timeoutTask.cancel(true)` (cherry picked from commit 50a06fc)
So, apparently the test and fix are simple, so I decided to go ahead and do it myself. Feel free to contribute anything else! |
Yeah ! I just study and don't see your message :) Next time you will see my contribution 👍 |
3.0.10
When i use
org.springframework.amqp.rabbit.AsyncRabbitTemplate#sendAndReceive(java.lang.String, org.springframework.amqp.core.Message)
and when get reply, nothing is clearing or cancelingorg.springframework.amqp.rabbit.RabbitFuture#timeoutTask
and for every sending (if i get answer) i got memory leak , as shown in the photo (find this every time with profiler)I got bug with this snippet of code:
The text was updated successfully, but these errors were encountered: