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
143490: workload: improve histogram file handling to avoid corrupted files r=csgourav,srosenberg a=sambhav-jain-16
This commit adds a robust approach to writing histogram files in
workload runs to prevent file corruption and partial writes. The
previous implementation was vulnerable to producing corrupted histogram
files when processes terminated abnormally while the file is geeting
closed.
Changes include:
- Writing histogram data to a temporary file first
- Using atomic file rename operation when writing is complete
- Adding proper cleanup of temporary files in error cases
Fixes: #142513
Release note: None
Co-authored-by: Sambhav Jain <[email protected]>
0 commit comments