derkuci opened a new pull request #20541: URL: https://github.com/apache/airflow/pull/20541
As initially discussed in #20500, if the user code adds a log handler to write to the standard out/err, there will be an infinite loop of logging messages. The `StreamLogWriter._buffer` will be doubled in each iteration, and soon use up all the memory. This change doesn't stop the infinite loop; it merely changes the growth of `StreamLogWriter._buffer` from exponential to linear, which will also lead to runtime error (stack overflow). However, that is much easier to debug (see the infinite loop) than the out-of-memory error (no call stack). For normal cases, this doesn't change the logging behavior. -- 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]
