Skip to content

Commit

Permalink
YARN-2777. Mark the end of individual log in aggregated log. Contributed
Browse files Browse the repository at this point in the history
by Varun Saxena
  • Loading branch information
xgong committed Mar 20, 2015
1 parent 1561231 commit 1a4b528
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions hadoop-yarn-project/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,9 @@ Release 2.7.0 - UNRELEASED
YARN-2854. Updated the documentation of the timeline service and the generic
history service. (Naganarasimha G R via zjshen)

YARN-2777. Mark the end of individual log in aggregated log.
(Varun Saxena via xgong)

OPTIMIZATIONS

YARN-2990. FairScheduler's delay-scheduling always waits for node-local and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ private static void readContainerLogs(DataInputStream valueStream,
pendingRead > buf.length ? buf.length : (int) pendingRead;
len = valueStream.read(buf, 0, toRead);
}
out.println("End of LogType:" + fileType);
out.println("");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ private void testReadAcontainerLog(boolean logUploadedTime) throws Exception {
+ (logUploadedTime ? ("\nLog Upload Time:" + Times.format(System
.currentTimeMillis())).length() : 0)
+ ("\nLogLength:" + numChars).length()
+ "\nLog Contents:\n".length() + numChars + "\n".length();
+ "\nLog Contents:\n".length() + numChars + "\n".length()
+ "End of LogType:stdout\n".length();
Assert.assertTrue("LogType not matched", s.contains("LogType:stdout"));
Assert.assertTrue("log file:stderr should not be aggregated.", !s.contains("LogType:stderr"));
Assert.assertTrue("log file:logs should not be aggregated.", !s.contains("LogType:logs"));
Expand Down

0 comments on commit 1a4b528

Please sign in to comment.