influxdata / influxdata/kapacitor
Post Config API block until timeoutUpdateReached
- Dominant language
- Go
- Stars
- 2.4k
- Forks
- 479
- Avg merge
- 4d 16h
- Merged PRs (30d)
- 4
Description
Due to a blocking chan http post (update) config api doesn't work.
It seems that code is written to make tests working.
I don't understand this part of code:
https://github.com/influxdata/kapacitor/blob/master/services/config/service.go#L261-L282
Contributor guide
Research direction
Start by reading services/config/service.go around lines 261-282, then trace the blocking channel used by the HTTP POST config update and how timeoutUpdateReached is involved. Reproduce the reported behavior and determine what completion condition the API should use; done means the POST config API no longer blocks unexpectedly while the relevant timeout behavior remains covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100