You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Since WriteFile requires multiple system calls to complete, a failure mid-operation
// can leave the file in a partially written state.
We should ensure we're not leaving behind a corrupted file if write returns an error. A malformed/corrupted subscriber file could prevent APM Server from starting
Steps to reproduce:
create a corrupted subscriber file
start apm server
Provide logs (if relevant):
We've observed this a few times with the error
error parsing subscriber position file: unexpected end of JSON input
The text was updated successfully, but these errors were encountered:
APM Server version (
apm-server version
): 8.16Description of the problem including expected versus actual behavior:
We're writing the subscriber position using
os.WriteFile
atapm-server/x-pack/apm-server/sampling/processor.go
Line 608 in 840fe6c
The documentation says:
We should ensure we're not leaving behind a corrupted file if write returns an error. A malformed/corrupted subscriber file could prevent APM Server from starting
Steps to reproduce:
Provide logs (if relevant):
We've observed this a few times with the error
The text was updated successfully, but these errors were encountered: