Error: There is no current subscription with tag #3984
-
Hello! For the past couple of months I've been experiencing the error: 'There is no current subscription with tag 'T_....' which ocasionally occurs. This week I've tried to get to the bottom of what's causing this and frequently breaking my websocket connections. Going through the logs, I've concluded that the error occurs in RabbitMQ. I'm using Stomp plugin. My current architecture is as following:
These are the following logs whenever the issue occurs:
Spring boot:
In order to reproduce the problem, I made a tiny project which can replicate this exact error. It also contains the step in order to reproduce the error. It can be found here: I suspect there's some kind of multithreading issue as it occurs 'randomly' in my view. I'm not certain about this however. If there's anything more I can contribute with, such as any more logs, assistance in setting up the replication project etc I'd be glad to do so. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 6 replies
-
Thanks for providing code to reproduce this. I'll give it a try this week.
I don't see any evidence at this point to bolster that claim just yet 😄 Glancing at your code, I see that you're unsubscribing / subscribing during |
Beta Was this translation helpful? Give feedback.
-
@Leifhaa when you have time, would you please modify your project or provide instructions for how I can activate the most verbose |
Beta Was this translation helpful? Give feedback.
-
Update - I have been busy with support for paying customers but have added this to my to-do list. I can't guarantee when I will have time to assist. |
Beta Was this translation helpful? Give feedback.
-
We were also able to reproduce this behaviour. Our observation was that it happens when UNSUBSCRIBE is followed by SEND in other consumer nearly at same time. Here is part of TCP traffic captured by Wireshark just before server closes connection:
|
Beta Was this translation helpful? Give feedback.
-
HI, I am facing the same issue. Did you manage to overcome this problem? Is there any updates on this? |
Beta Was this translation helpful? Give feedback.
-
I had the reproduction app running for over an hour and the issue didn't occur. I reduced the sleep time, to make it go through more iterations (it was thousands of subscriptions). I tried main and v3.11.x on OTP25 and OTP26. It feels like there's something more needed to trigger this problem. If someone can try to adjust |
Beta Was this translation helpful? Give feedback.
-
Thanks @mkuratczyk |
Beta Was this translation helpful? Give feedback.
I had the reproduction app running for over an hour and the issue didn't occur. I reduced the sleep time, to make it go through more iterations (it was thousands of subscriptions). I tried main and v3.11.x on OTP25 and OTP26.
It feels like there's something more needed to trigger this problem. If someone can try to adjust
rabbitmq-spring-websocket
or provide another app we can try, we'll look into this. Otherwise I don't see how we can fix that.