Mutation Acknowledgement gaps

Offen
#44 2 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@a-guhan arbeitet bereits daran.

Seit 24.11.2026.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

Problem :
When a mutation's rows need a storage read (for example, a new member that joins a conversation the server isn't holding yet), the client is told the mutation is done before those rows arrive.

  1. The commit is processed, and its lastMutationID goes out in a poke right away.
  2. The read for the joined rows runs in the background, and they arrive in a later poke.
  3. In between, the client drops its optimistic copy (the ack says the server has it), so the UI briefly shows the data without the joined row, maybe a flicker, or poke processing error (based on the client).

Fix:

  • Engine: a commit now says which storage reads its rows still wait on (opened), and the landing that finishes a read says so (closed). Reads started by those reads are tracked too, and closed is always sent, even when the read is empty or refused.
  • Group thread: if a group has an ack waiting and one of its reads is still open, its poke is held. When the reads close, the rows and the ack go out together in one poke. Later acks queue behind it, so order is kept.
  • Safety: if a read is stuck for 30s (STREAMGRES_ACK_HOLD_LIMIT_MS), the group is dropped and the client reconnects fresh. An early ack is never sent.
Vorherrschende Sprache
Rust
Sterne
129
Forks
7
Ø Merge
1 T. 19 Std.
Gemergte PRs (30 T.)
5

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus juspay/streamgres

Alle Issues in juspay/streamgres

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.