Split off batched reconciler into its own constructor
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start by locating reconciler.New, BatchOperations, and the retry handling in the reconciler package. Trace how single-object and batched reconciliation currently interact, then verify that separate constructors, BatchOperations.Prune, and batch retry behavior cover both supported modes without requiring unused operations.
Written by the indexing model from the issue text.
Description
The current reconciler.New takes both reconciler.Operations and reconciler.BatchOperations. The BatchOperations can be nil in which cases objects are reconciled one at a time.
This API seems to lead to many users assuming that both Operations and BatchOperations need to be implemented. Make the API easier to use correctly by removing the BatchOperations parameter from reconciler.New and introducing a reconciler.NewBatchReconciler constructor. Extend BatchOperations with Prune method and refactor the reconciler to work without single object reconciliation (e.g. the retry handling which should be able to retry a batch).
- Dominant language
- Go
- Stars
- 103
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing 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.
More from cilium/statedb
-
Difficulty 5/5 Over a week Newbie friendliness 42/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
google/osv-scanner#3327 ·
Maintainers usually reply within 1 day
-
tld-snapshot
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
awslabs/ferret-scan#1064 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
VictoriaMetrics/VictoriaTraces#335 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 62/100
DaoCloud/DaoCloud-docs#7839 ·
Maintainers usually reply within 1 day