serilog-sinks-http icon indicating copy to clipboard operation
serilog-sinks-http copied to clipboard

Durable Buffered Sink does not emit when only _001 suffixed files exist

Open jonmotos opened this issue 10 months ago • 2 comments

Describe the bug

When the time-rolled durable file sink is used, and there are two files for the same date (due to multiple processes), and the non-suffixed file is deleted, leaving only the _001 file, the http shipper emits empty log batches.

To Reproduce

Steps to reproduce the behavior:

  1. Have multiple buffer files, where one ends in _001
  2. Delete all but the _001
  3. Observe the log batches emitted are empty, despite logs buffered in _001

Expected behavior

The buffered logs should be emitted.

Desktop (please complete the following information):

  • OS: Windows 11
  • Version 8.0.0

jonmotos avatar Apr 17 '24 20:04 jonmotos

Hi there and welcome to this repository!

A maintainer will be with you shortly, but first and foremost I would like to thank you for taking the time to report this issue. Quality is of the highest priority for us, and we would never release anything with known defects. We aim to do our best but unfortunately you are here because you encountered something we didn't expect. Lets see if we can figure out what went wrong and provide a remedy for it.

github-actions[bot] avatar Apr 17 '24 20:04 github-actions[bot]

Hi and thanks for letting us know.

Would you be able to build a sample console application showcasing this behavior where multiple processes are causing the issue?

FantasticFiasco avatar Apr 19 '24 05:04 FantasticFiasco