microsoft / microsoft/etcd3

deadline option of lease not work

Open
#130 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I connect to remote etcd and set deadline +4s for lease call, but it cost 1 min to give error 14 UNAVAILABLE: failed to connect to all addresses. Socket keeps SYN_SENT state from ss -tpn.
The option dialTimeout for ETCD3 constructor doesn't work too.

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

Start by reproducing the remote etcd lease failure with a four-second deadline and an unreachable endpoint, then trace the lease call and the ETCD3 constructor's dialTimeout handling. Check the socket state and gRPC error timing; done means both options bound connection failures instead of waiting about a minute.

Written by the indexing model from the issue text.

Assessment

Tech stack
grpc, node.js, typescript
Domain
api, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.