-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Message event fired multiple times (usually random count) after cluster restart #803
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 7 days if no further activity occurs, but feel free to re-open a closed issue if needed. |
@nolimitdev were you able to figure out how to avoid this situation? I am in similar situation, and I feel I am doing something wrong on my end. |
No there is no workaround. This issue should be opened and fixed. Or repo
author should mention somewhere in doc that this lib does not correctly
support messaging in case of cluster.
…On Wed, Apr 24, 2019, 14:50 Jignesh R Chaudhari ***@***.***> wrote:
@nolimitdev <https://github.com/nolimitdev> were you able to figure out
how to avoid this situation? I am in similar situation, and I feel I am
doing something wrong on my end.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#803 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AGCHU5LUZQN4BWEJ77RSIJLPSBJRPANCNFSM4G2SUN3Q>
.
|
Wow, I have updated from v4.6.3 to latest v4.17.3 and issue is away. So it seems to be safe to use cluster via ioredis for pub/sub now. @jignesh248 can you please confirm it too? |
Hello, when I was reporting bug related to unhanded error when used subscribe in cluster I found another bug. When you are subscribed in cluster and cluster is restarted then the same message event is fired multiple times (count is always another number for each test - e.g. from 2 times to several tens times). Number of duplicated messages seems to be depending on how long is cluster down. When I only restart cluster (so it is down for a while) then the same message is fired e.g. 2 times. When I shutdown cluster for a minute then the same message is fired several tens times. This issue is related only to cluster version (non-cluster works OK). Tested in latest version 4.6.3 on both Windows and Linux (Debian) - result is the same - see below.
Start redis cluster, then run
node cluster.js
and few seconds later shutdown all nodes and start it again...Result:
The text was updated successfully, but these errors were encountered: