microsoft / microsoft/etcd3

WatchBuilder.create() doesn't reject an error when erred

Open
#154 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
546
Forks
76
Avg merge
22h 46m
Merged PRs (30d)
13

Description

When watcher can't connect to etcd server with some reason. I can't catch the error. I checked the code in watch.js and found there omit an event to listen in WatchBuilder.create(). The event is "disconnected".

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read watch.js and WatchBuilder.create(), then trace how the watcher handles connection failures. Done means a failed connection to the etcd server exposes the “disconnected” event so callers can catch the error; no test file is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
grpc, node.js, typescript
Domain
api, backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.