Skip to content

registry/zookeeper: watch service name path error #3947

@cruelchen

Description

@cruelchen

Go version

go version go1.23.1 amd64

GoFrame version

2.8.0

Can this bug be reproduced with the latest release?

Option Yes

What did you do?

zookeeper watch service path

What did you see happen?

unable to detect changes for specified path that end with /
if the path is /service/default/default/idalloc/latest/ the registry of zookeeper in gf will watch service-default-default-idalloc-latest-
but the real service name path is service-default-default-idalloc-latest, that without -

What did you expect to see?

remove redundant -

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIt is confirmed a bug, but don't worry, we'll handle it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions