api: an Application watch resumed from a WorkloadMonitor version can skip HelmRelease changes of other applications
Maintainer antworten meist innerhalb von 3 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 25/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Go
- Sterne
- 2.2k
- Forks
- 209
- Ø Merge
- 4 T. 14 Std.
- Gemergte PRs (30 T.)
- 140
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus cozystack/cozystack
-
triage/needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
cozystack/cozystack#5464 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 3 Tagen
-
test(kubernetes-nodes): stop hand-typing the default Talos version in tests that are not about itOffenarea/testing kind/cleanup triage/needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
cozystack/cozystack#5456 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 3 Tagen
-
area/testing kind/cleanup triage/needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
cozystack/cozystack#5447 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 3 Tagen
-
area/kubernetes kind/bug triage/needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
cozystack/cozystack#5445 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 3 Tagen
-
kind/bug triage/needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
cozystack/cozystack#5438 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 3 Tagen
Alle Issues in cozystack/cozystack
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
Correct local module testing instructions for Go sample contributorsEvtl. vergeben @slievrly hat das heute übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
-
internal/core: cleanAttachmentName splits a rune at the 255-byte cap and stores invalid UTF-8Evtl. vergeben @pacwestnobody hat das heute übernommen. Offengo good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Podiom/Podiom#427 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
TestLaunchGolden spends about 98 seconds on fake-agent exit delays under -raceEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
factory:subtask
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 95/100
Maintainer antworten meist innerhalb von 1 Tag