Skip to content

Commit

Permalink
BIGTOP-4169: The task log service did not send the completion signal (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinw66 authored Jul 26, 2024
1 parent 5ecd17f commit 07d5830
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ public void getLog(TaskLogRequest request, StreamObserver<TaskLogReply> response
readNewLogs(file, responseObserver);
Thread.sleep(1000);
}

responseObserver.onCompleted();
} catch (Exception e) {
String errMsg = "Error when reading task log: " + e.getMessage() + ", please fix it";
responseObserver.onNext(TaskLogReply.newBuilder().setText(errMsg).build());
Expand Down

0 comments on commit 07d5830

Please sign in to comment.