-
Notifications
You must be signed in to change notification settings - Fork 353
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
SENTINEL GET-MASTER-ADDR-BY-NAME newsrecdoc19 returned failed. #135
Comments
@yyhclimacool That's strange. However, your debugging shows that it's not a valid reply. Can you use redis-cli to connect to the sentinel node, and send
Do you use redis-plus-plus to run this test program? Regards |
So you only got the problem in a multiple threaded environment? It's weird! Can you show me your code that can reproduce the problem? Even better, if you can also give me a docker image that can reproduce it. So that I can do some debugging. Regards |
I have the same issue ... |
Sorry, I almost forgot this issue. |
@mfatemipour Can you check if you installed multiple versions of hiredis? Or as @yyhclimacool mentioned, your environment installed hiredis-vip? There's another issue, when multiple versions of hiredis installed, you might get some weird error. If you only installed one hiredis, please give me your version info (or branch info) on Redis, hiredis and redis-plus-plus. I'll try to reproduce it. Regards |
I'm using redis-plus-plus compiling from latest master branch code in SENTINEL mode.
I got the exception of "Failed to create connection with sentinel".
and it's because "StopIterError" exception or "Error" exception.
so I did some logging.
and deeply it's because "_get_master_addr_by_name(sentinel, master_name)" throwed an exception.
and inside this function, it's because "reply::parse<Optional<std::pair<std::string, std::string>>>(*reply)" throwed an exception, and reply.elements != 2,so exception is "NOT key-value PAIR reply".
the redis server is OK, I checked by run redis-cli.
I'm running program in docker env, base image is from "tensorflow/tensorflow:1.15.0-gpu-py3", I don't think docker env has anything to with these exceptions.
OS : Ubuntu 18.04.3 LTS
hiredis : release v1.0.0
gcc : gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
the weired thing is, I have this sentinel in a seperate single threaded test program, and it get redis key successfully.
any idea on this problem ?
The text was updated successfully, but these errors were encountered: