dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[Bug][LoggerServer] task log can not refresh in time

Open 597365581 opened this issue 5 years ago • 5 comments

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。 image

597365581 avatar Jan 29 '21 02:01 597365581

例如,如果 1s 内产生的日志量不能满足代码中默认的64条,并且后续又需要等很久才有新的日志产生。 就会导致 日志很久都无法被刷新。

597365581 avatar Jan 29 '21 02:01 597365581

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。 image

image

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

felix-thinkingdata avatar Jan 29 '21 12:01 felix-thinkingdata

https://github.com/apache/incubator-dolphinscheduler/pull/4618

597365581 avatar Feb 02 '21 02:02 597365581

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。 image

image

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。

597365581 avatar Feb 02 '21 03:02 597365581

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。

597365581 avatar Feb 02 '21 07:02 597365581