Skip to content

SENTINEL GET-MASTER-ADDR-BY-NAME newsrecdoc19 returned failed. #135

Closed
@yyhclimacool

Description

@yyhclimacool

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions