In this article
Verify pending removal and retained payload independently; an acknowledgement count is neither a deletion count nor proof of a committed external effect.
Acknowledged work still occupies the stream
A service acknowledges every processed message, yet the stream continues growing. The recovery team suspects that XACK has stopped working because stored entries remain visible. The suspected failure comes from assigning acknowledgement a retention contract it does not have.
The XACK reference defines removal from the consumer group’s Pending Entries List. That operation releases the pending tracking entry. It does not describe deletion of the stream payload itself, and it is not an instruction to truncate retained history.
Identify the state being reduced
A pending entry represents a delivery whose acknowledgement the group has not yet recorded. It carries responsibility for unfinished delivery tracking. The underlying stream entry is a different object and may still be relevant to other groups, later inspection or the application’s retention requirements.
Name the group in every acknowledgement record. A clean pending list for that group is a narrower statement than a clean stream or completed processing across every consumer group. Avoid dashboards that label all these states simply as queue depth.
Interpret the returned count
XACK returns the number of entries actually acknowledged. The documentation notes that an ID already absent from the pending list is not counted again. A lower count can therefore result from repeated acknowledgement, not necessarily a newly failed command.
Keep requested IDs, returned count and known prior state together. Blindly retrying acknowledgements until the returned number matches the original batch can never succeed for IDs already acknowledged. Conversely, treating any successful response as proof that every requested pending entry changed state hides incorrect group or ID selection.
Place acknowledgement after the owned outcome
Redis records the acknowledgement; it does not inspect the external business transaction. If a worker acknowledges before its required effect is durably accepted, a later worker failure can leave no pending recovery obligation for that effect.
An operation ledger explains the complementary duplicate-safe outcome problem. The service must define the boundary at which its handler may acknowledge, including what happens when the external outcome is ambiguous. Neither always acknowledging early nor blindly repeating an effect resolves that ambiguity.
Verify accounting and retention separately
Use a bounded fixture with identifiable messages. Inspect their pending ownership with XPENDING, acknowledge selected IDs and inspect the pending state again. Independently check whether the payload remains available through the intended stream-reading path.
Repeat an acknowledgement to verify the returned-count contract. Keep any retention or deletion experiment separate and account for other groups before removing data. Outstanding-work limits explains why pending obligations and retained history need distinct resource accounting.
Accept a precise completion statement
A useful acceptance statement says that selected group obligations were acknowledged after their application outcomes were reconciled. A separate statement covers retained payload and cleanup policy. Stream growth after successful XACK is not sufficient evidence of an acknowledgement failure. Pending reduction alone is equally insufficient evidence that storage was reclaimed or every business operation completed.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.