Commit 240f2bf
committed
osiris_log: Remove debug log about trailing data
This debug log prints fairly often when publishing at a reasonably high
throughput, for example with:
stream-perf-test --producers 1 --consumers 0 --streams sq --size 1000 --rate 50000
Callers of `build_segment_info/3` (retention and resolving some offset
specs) find the last chunk position by reading the index file first and
then reading the segment. If any new chunks are appended between the
read of the index file and the read of the segment file, `Eof` will
naturally not be equal to `Size`. And the segment file is written before
the index file, so there's a non-trivial window where this is true.
When publishing with that throughput (50 MB/sec) I see this log printed
by retention very consistently. There's a TODO here wondering whether we
should remove the extra `position` syscall. I don't think we need it so
this commit removes the `position` call and `DEBUG_IF` log.1 parent 2c92e61 commit 240f2bf
1 file changed
+0
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2123 | 2123 | | |
2124 | 2124 | | |
2125 | 2125 | | |
2126 | | - | |
2127 | | - | |
2128 | | - | |
2129 | | - | |
2130 | | - | |
2131 | | - | |
2132 | 2126 | | |
2133 | 2127 | | |
2134 | 2128 | | |
| |||
0 commit comments