Mutation Acknowledgement gaps

Aberta
#44 2 comentários 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 1 dia

@a-guhan já está trabalhando nisso.

Desde 24/11/2026.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

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.
Linguagem predominante
Rust
Estrelas
129
Forks
7
Merge médio
1d 19h
PRs com merge (30d)
5

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de juspay/streamgres

Todas as issues de juspay/streamgres

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.