Skip to content

Make the shipper output to acknowledge batches based on PersistedIndex not AcceptedCount #32329

@rdner

Description

@rdner

Describe the enhancement:

Currently, the shipper is acknowledging the event batch based on AcceptedCount coming from the shipper as a part of the PublishReply.

This is unsafe because AcceptedCount does not mean that the actual final output (e.g. Elasticsearch) acknowledged these events from the Shipper's queue, it just means that the shipper put it in its own queue for processing. So, the data can be lost if the shipper process dies.

To fix this we need to use PersistedIndex from PublishReply or a separate PersistedIndex endpoint to acknowledge the events.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions