Netcracker / Netcracker/pgskipper-operator
[Bug]: excessive sleep in patroni_core_controller.go
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 3
- Forks
- 10
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 26
Description
Describe the bug
The sleep is not documented, and it looks like it spends time without explanation.
At least the code should document the sleep or it should be replaced with a conditional wait.
To Reproduce
Version
No response
Logs
No response
Additional information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in operator/controllers/patroni_core_controller.go at lines 196-197 and read the surrounding controller flow to understand why the sleep occurs. Determine whether its purpose can be documented or whether the flow needs a conditional wait, then verify that the controller no longer spends unexplained time there and that existing controller behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100