esq icon indicating copy to clipboard operation
esq copied to clipboard

Lock a disk segment if in-flight heap contains its message

Open fogfish opened this issue 7 years ago • 0 comments

In-flight capability implements a simple protocol that ensures message retransmission in case of consumer failure. In-flight heap is pure in-memory segment. Existed queue behaviour deletes the on-disk segment one its last message reads (delete happens during rotation). The crash of Erlang node will cause lost of in-flight heap. We need to ensure that disk segments are deleted only when its messages are acknowledged by consumer.

fogfish avatar Oct 17 '18 09:10 fogfish