seanghaeli opened a new issue, #77058:
URL: https://github.com/apache/airflow/issues/77058
`GCSRemoteLogIO.write`
(`providers/google/src/airflow/providers/google/cloud/log/gcs_task_handler.py`)
appends with `f"{old_log}\n{log}"`. A stored log already ends with a newline,
so every append leaves an empty line in the object. The S3 and WASB handlers
check `old_log.endswith("\n")` first. This already happens on main when a task
defers again in the same try on the same triggerer, and with #76527 when a
watcher's file is uploaded again to the same object. Airflow's log reader skips
empty lines, so it doesn't show in the UI, but the stored object isn't clean
JSON lines.
Done when: appending to an existing GCS log adds no empty line, like S3 and
WASB, with a test.
This is small and self-contained, so it would make a good first issue.
--
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]