Mechanism to abort Lock

Open
#12 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go

Research direction

No file or test is named. Start by locating the Lock interface and its implementations across the supported Consul and other backends, then inspect existing blocking and cancellation tests. Done means the API defines an abort mechanism consistently and tests verify that Lock exits when cancellation is triggered.

Written by the indexing model from the issue text.

Description

kind/enhancement store/zookeeper

Right now, Lock() block until it succeeds.

We need a way to abort.

Consul for instance provides a way to pass a stopCh - when closed, Lock exits immediately.

Dominant language
Go
Stars
847
Forks
204
PR merge metrics
No merged PRs in 30d

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.

More from docker/libkv

All issues in docker/libkv

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.