You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/02/01 05:28:19 UTC

[GitHub] [incubator-dolphinscheduler] 597365581 commented on a change in pull request #4618: fix [Bug][LoggerServer] task log can not refresh in time #4617

597365581 commented on a change in pull request #4618:
URL: https://github.com/apache/incubator-dolphinscheduler/pull/4618#discussion_r567571735



##########
File path: dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/AbstractCommandExecutor.java
##########
@@ -348,12 +348,14 @@ public void run() {
 
                     long lastFlushTime = System.currentTimeMillis();
 
-                    while ((line = inReader.readLine()) != null) {
+                    while ((line = inReader.readLine()) != null || logBuffer.size() > 0) {

Review comment:
       @chengshiwen of course,the SonarCloud Code Analysis must pass




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org