Skip to content

一致性哈希不支持带tag的同ip-port地址 #2993

Description

@egolearner

Describe the bug

地址后出现的非注释内容被认为是tag,由一个或多个空格与前面的地址分隔,相同的地址+不同的tag被认为是不同的实例。

但是一致性哈希实现中没有考虑tag,只用了ip地址来生成哈希或者判断node是否相同,导致相同的地址+不同的tag被认为是相同节点。

To Reproduce

Expected behavior
一致性哈希支持相同的地址+不同的tag。

Versions
OS:
Compiler:
brpc:
protobuf:

Additional context/screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions