-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Spark Load] Redirect the spark launcher's log to a separated log file #4470
Conversation
@@ -103,7 +114,7 @@ public void run() { | |||
try { | |||
outReader = new BufferedReader(new InputStreamReader(process.getInputStream())); | |||
while (!isStop && (line = outReader.readLine()) != null) { | |||
LOG.info("monitor log: " + line); | |||
outputBuffer.append(line + '\n'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not just output to the outputStream
? So that we don't need to buffer a log of content in memory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. I changed it
} | ||
|
||
public void clearSparkLauncherLog() { | ||
String logPath = sparkLoadAppHandle.getLogPath(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure the sparkLoadAppHandle
is not null here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure. So I made a new check here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Proposed changes
#4469
Types of changes
What types of changes does your code introduce to Doris?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.