Commit 71208f6
committed
in_tail: fix data loss on shutdown with buffered data
Unprocessed data in the internal buffer is currently discarded when
Fluent Bit stops, causing data loss because the DB offset is already
advanced.
This patch fixes the issue by rewinding the file offset by the remaining
buffer length on exit, ensuring the data is re-read on the next startup.
Signed-off-by: jinyong.choi <[email protected]>1 parent 7ded9ae commit 71208f6
1 file changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1448 | 1448 | | |
1449 | 1449 | | |
1450 | 1450 | | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
1451 | 1474 | | |
1452 | 1475 | | |
1453 | 1476 | | |
| |||
0 commit comments