serilog-sinks-http
serilog-sinks-http copied to clipboard
Durable Buffered Sink does not emit when only _001 suffixed files exist
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:
- Have multiple buffer files, where one ends in _001
- Delete all but the _001
- 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
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.
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?