You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/logtail/filch
Joe Tsai 6f55309f34
logtail/filch: fix panic in concurrent file access (#18555)
In the event of multiple Filch intances being backed by the same file,
it is possible that concurrent rotateLocked calls occur.
One operation might clear the file,
resulting in another skipping the call to resetReadBuffer,
resulting in a later panic because the read index is invalid.
To at least avoid the panic, always call resetReadBuffer.

Note that the behavior of Filch is undefined when using the same file.
While this avoids the panic, we may still experience data corruption or less.

Fixes #18552

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
1 day ago
..
filch.go logtail/filch: fix panic in concurrent file access (#18555) 1 day ago
filch_omit.go all: remove AUTHORS file and references to it 6 days ago
filch_stub.go all: remove AUTHORS file and references to it 6 days ago
filch_test.go logtail/filch: fix panic in concurrent file access (#18555) 1 day ago
filch_unix.go all: remove AUTHORS file and references to it 6 days ago
filch_windows.go all: remove AUTHORS file and references to it 6 days ago