api: an Application watch resumed from a WorkloadMonitor version can skip HelmRelease changes of other applications
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
Línea de trabajo
Start with REST.Watch in pkg/registry/apps/application/rest.go, where the HelmRelease and WorkloadMonitor watches are merged and the client's resourceVersion is replayed and filtered. Read how the merged stream orders events and how the HelmRelease watch is reopened on resume. Done means a reconnect after a WorkloadMonitor event cannot skip a HelmRelease change, which needs a design decision between ordering across streams and opening the backing watches from the client's resourceVersion.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Where
pkg/registry/apps/application/rest.go, REST.Watch.
Problem
An Application watch merges two backing watches: HelmReleases and WorkloadMonitors. Events from the two streams reach the client in whatever order they arrive, and a WorkloadMonitor-triggered event carries a resourceVersion at least as new as the monitor's. A client-go reflector records the resourceVersion of every event it receives as its resume point, whatever object the event is for, and passes it back when it reconnects.
The backing HelmRelease watch is opened without the client's resourceVersion, and resume is emulated by replaying every release as ADDED and skipping those whose resourceVersion is not above the client's.
Sequence:
- Application A's HelmRelease is written at revision 100; the event has not been delivered on the HelmRelease stream yet.
- Application B's WorkloadMonitor is written at revision 101, and its event is delivered first.
- The client records 101 and the connection drops.
- On reconnect the replay of A at 100 is skipped as already seen, and the client keeps A's previous spec until A changes again or the client relists.
Impact
Rare: it needs a disconnect inside the window between the two deliveries. When it happens, the stale object stays in the client's cache with no error.
Possible directions
- Deliver events in revision order across both streams, holding a monitor event until the HelmRelease stream has progressed past its revision (for example via a progress bookmark from the backing watch).
- Open the backing watches from the client's resourceVersion instead of replaying and filtering, so the server, not the merge, decides what the client has seen. This alone does not fix the ordering across the two streams.
- Lenguaje dominante
- Go
- Estrellas
- 2.2k
- Forks
- 209
- Merge medio
- 4 d 14 h
- PR fusionados (30 d)
- 140
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de cozystack/cozystack
-
triage/needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
cozystack/cozystack#5464 · 1 reacción ·
Los mantenedores suelen responder en 3 días
-
test(kubernetes-nodes): stop hand-typing the default Talos version in tests that are not about itAbiertoarea/testing kind/cleanup triage/needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
cozystack/cozystack#5456 · 1 reacción ·
Los mantenedores suelen responder en 3 días
-
area/testing kind/cleanup triage/needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
cozystack/cozystack#5447 · 1 reacción ·
Los mantenedores suelen responder en 3 días
-
area/kubernetes kind/bug triage/needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
cozystack/cozystack#5445 · 1 reacción ·
Los mantenedores suelen responder en 3 días
-
kind/bug triage/needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
cozystack/cozystack#5438 · 1 reacción ·
Los mantenedores suelen responder en 3 días
Todos los issues de cozystack/cozystack
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Correct local module testing instructions for Go sample contributorsPosiblemente ocupada @slievrly la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
-
internal/core: cleanAttachmentName splits a rune at the 255-byte cap and stores invalid UTF-8Posiblemente ocupada @pacwestnobody la tomó hoy. Abiertogo good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Podiom/Podiom#427 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
TestLaunchGolden spends about 98 seconds on fake-agent exit delays under -racePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
factory:subtask
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
Los mantenedores suelen responder en 1 día