Skip to content
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

Exception with jedis [ERR duplicate blocking connection on same key.] #30

Closed
sscarduzio opened this issue Mar 27, 2014 · 6 comments
Closed

Comments

@sscarduzio
Copy link

I tried to migrate our queue system to ARDB and I got this. Why two blocking connections on the same key would be a problem?

@yinqiwen
Copy link
Owner

Yes, in redis, it's ok. I'll fixed it later.

@sscarduzio
Copy link
Author

I'm not a C++ dev, but I tried to fix it myself, in lists.cpp I commented out all the instances of this snippet

          if (NULL != m_blocking_conns[key] && m_blocking_conns[key] != &ctx)
            {
                fill_error_reply(ctx.reply, "duplicate blocking connection on same key.");
                return 0;
            }

But unfortunately the server repeatedly segfaults. Not sure what went wrong..

@sscarduzio
Copy link
Author

The server segfaulted continuously even after rolling back the change. I guess data got corrupted at a certain point.
That means I'm not sure if the code change was the culprit or not.
Now I deleted the data folder and I'm re-importing once again from the dump.

@yinqiwen
Copy link
Owner

Fixed in last commit.

@sscarduzio
Copy link
Author

Thanks, I'm going to test this right now.

@sscarduzio
Copy link
Author

It works! Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants