Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Custom API methods should support optional version + uid preconditions

Aperta
#1,773 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@abhisheksharma2411 ci sta già lavorando.

Dal 14/10/2026.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

Start by tracing the SuspendActor custom API and compare it with the existing Update API handling for optional version and UID preconditions. Define how stale calls should produce VersionConflict or NotFound, then verify that the recreated-actor scenario fails instead of mutating the replacement actor.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area/api-machinery kind/feature

Update APIs support optional version + uid preconditions to avoid mutating stale objects.

Custom API methods don't have the same protections.

One concrete example is SuspendActor.
Imagine you have 2 independent operators (controllers, reconciliation loops, manually calling kubectl, etc...) called O1 and O2.
t1 - O1 reads the state of ate-demo-counter/counter1
t2 - O2 deletes ate-demo-counter/counter and recreates another actor with the same name
t3 - O1 suspends ate-demo-counter/counter1

O1 has now suspended a completely different actor, potentially running on a different worker / node. This is unlikely the desired outcome. Instead the SuspendActor call from O1 should fail with VersionConflict or NotFound.

We should allow clients to provide optional version + uid preconditions for custom APIs to avoid mutating stale objects.

Lingua principale
Go
Stelle
5.7k
Fork
612
Merge medio
2g 13h
PR unite (30g)
555

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di agent-substrate/substrate

Tutte le issue di agent-substrate/substrate

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.