microsoft / microsoft/etcd3

ILeaseTimeToLiveResponse returns an empty array of keys

Open
#187 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

(async () => {
  const lease = client.lease(3600);
  let leasedKey = await lease.put ('/leased-key').value ('value');
  let leasedGet = await client.get ('/leased-key').exec ();
  console.log ('leasedKey:', leasedKey);
  console.log ('leasedGet:', leasedGet);
  const leaseId = leasedGet.kvs[0].lease;
  console.log ('leasettl:', await client.leaseClient.leaseTimeToLive ({'ID': leaseId}))
}) ();

There is a key attached to the lease, but the ILeaseTimeToLiveResponse returns an empty array of keys.

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 provided JavaScript snippet and tracing the leaseClient.leaseTimeToLive entry point. Verify the response for a lease with an attached key, and consider the issue done when ILeaseTimeToLiveResponse includes that key in its keys array.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.