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
Redis setEX Expired Event Triggering Multiple Times Despite Unsubscribe/Resubscribe #13248
Comments
@Prem-Kumar-98 can you share your test code? |
Hi @sundb ,
Let me know if you need further assistance or clarification. |
yes, they are two connections. |
So, as you can see, i'm unsubscribing the channel before subscribing to it. In this case, why is the expired event emitting twice in the rarest case? |
@Prem-Kumar-98 can you share the notificatiions you received? |
Hi @sundb , I don’t have logs or notification details. I'm using GCP Redis Labs, and I could see the subscribed callback got triggered twice.
|
@Prem-Kumar-98 what's your config
|
@sundb ,Keyspace event I configured the cloud service and verified that with the configuration I have from my end, it will emit the event only for expired, because it's not happening all the time; in the rarest case, it's emitting the expired events twice. |
@Prem-Kumar-98 sorry, from the clues i don't know the reason. |
Problem:
In a Redis setup, utilizing setEX to set a key with an expiration time, I've encountered an issue where the expired event is triggered multiple times for the same key if the channel is subscribed to multiple times. Despite attempting to mitigate this by unsubscribing and then resubscribing to the channel, the expired event still occasionally fires twice.
Details:
Expected Behavior:
The expired event should only be triggered once, regardless of how many times the channel is subscribed to.
Additional Information:
The text was updated successfully, but these errors were encountered: