hashicorp / hashicorp/consul

Consul api doesn't provide token usage in Locking operation

Open
#3,125 1 comment 0 reactions 0 assignees View on GitHub
theme/api type/enhancement
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
1d 18h
Merged PRs (30d)
39

Description

Client: `0.8.3`

`func (l *Lock) Lock(stopCh <-chan struct{}) (<-chan struct{}, error) {`
.........
**`qOpts := &QueryOptions{
WaitTime: l.opts.LockWaitTime
}`**
........
`pair, meta, err := kv.Get(l.opts.Key, qOpts)`
`........`

But QueryOptions contain Token field

Contributor guide

Open the contributing guide

Research direction

Start at the Lock.Lock function and its QueryOptions construction, then trace how the lock options expose token information. Check the related locking tests or add coverage for token usage; done means the token is supplied during the kv.Get operation and the behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api
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.