Closed simlay closed 2 years ago
The last_read_offset (naming not fully determined) we will add to ReplicaSlice needs to be a incremented (and never decremented) via 3 flows:
last_read_offset
ReplicaSlice
max(current_id, batch.start_id)
stream.next().await
Client already send ACK back to SPU: https://github.com/infinyon/fluvio/blob/master/crates/fluvio/src/consumer.rs. See UpdateOffsetsRequest
This spawn task do that:
https://github.com/infinyon/fluvio/blob/2d191918329c7f7b97b802022e79deeba1d6a8d1/crates/fluvio/src/consumer.rs#L365
Stale issue message
The
last_read_offset
(naming not fully determined) we will add toReplicaSlice
needs to be a incremented (and never decremented) via 3 flows:max(current_id, batch.start_id)
or whatever the variable names arestream.next().await
, this will also require sending the record's offset id back to the SPU for saving.