Skip to content

Watcher.Watch() hangs when some endpoints are not available #7247

Closed
@cw9

Description

Hi, I've experienced a few times that Wathcer.Watch() would hang forever, the hanging happens on the following code:

watcher.Watch(
		context.Background(),
		key,
		clientv3.WithProgressNotify(),
		clientv3.WithCreatedNotify(),
	)

I'm using the release-3.1 version of clients, is this behavior expected? What is the reason for the hang? The key being watched on is already existing, but I don't think that matters?

My current plan of work around is to add timeout and retry to this call, let me know if you have any concerns with this approach.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions