hashicorp / hashicorp/consul

Analog of '-monitor-retry' option for put command or create session via HTTP command

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

Description

Hi, everyone!

Is there some analog for '-monitor-retry' option via consul put command or during session creation?

I want something like this for example via consul client:
`consul kv put -acquire -monitor-retry=20 -session= `

Or via curl:
`curl -s --request PUT --data '{..., "MonitorRetry": 20, ...}' http://127.0.0.1:8500/v1/session/create`

I got three 500 error response code and consul exited. I want to increase this parameter.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the consul kv put command and the /v1/session/create entry point, focusing on the existing -monitor-retry and MonitorRetry references. Confirm how session monitoring and the three 500 responses are handled; done means the requested retry setting is consistently accepted and applied through the CLI and HTTP API, with coverage for both paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, cli
Issue type
Feature
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.