potiuk commented on PR #25253: URL: https://github.com/apache/airflow/pull/25253#issuecomment-1196771429
From the issue description: > What’s the issue preventing `w` from being used here? My problem with this access mode is that it can create sparse files. If the log file is moved or deleted, a new one will be created and the stdout/stderr will be written into it, but not from the start of the file. Instead if the original log file was x characters long, the new log file will contain x null bytes, and the new lines will be appended after that. To fix this problem we need to open the file with an access mode that has the `O_APPEND` flag enabled. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
