Mutation Acknowledgement gaps

Đang mở
#44 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@a-guhan đang làm issue này rồi.

Từ ngày 24/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.
Ngôn ngữ chính
Rust
Star
129
Fork
7
Merge trung bình
1 ngày 19 giờ
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của juspay/streamgres

Tất cả issue của juspay/streamgres

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.