[Bug][LoggerServer] task log can not refresh in time
for example ,if 1s produce log size can not teet the default conditions --Constants.DEFAULT_LOG_ROWS_NUM(64), and need to wait a long time。

例如,如果 1s 内产生的日志量不能满足代码中默认的64条,并且后续又需要等很久才有新的日志产生。 就会导致 日志很久都无法被刷新。
for example ,if 1s produce log size can not teet the default conditions --Constants.DEFAULT_LOG_ROWS_NUM(64), and need to wait a long time。

This is where the content that has not been written to the log is uniformly disposed of after the task has completed.
Probably because of efficiency
https://github.com/apache/incubator-dolphinscheduler/pull/4618
for example ,if 1s produce log size can not teet the default conditions --Constants.DEFAULT_LOG_ROWS_NUM(64), and need to wait a long time。
This is where the content that has not been written to the log is uniformly disposed of after the task has completed.
Probably because of efficiency
so, if this task exec need long time, log can not write in time, inconvenient problem positioning。
for example
#!/bin/bash echo "hello world" exec 10m echo "hello world2" if 1s produce log size can not meet the default conditions --Constants.DEFAULT_LOG_ROWS_NUM(64), and need to wait a long time。 because while ((line = inReader.readLine()) != null) is a block method。