hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From junping...@apache.org
Subject hadoop git commit: YARN-7400. Incorrect log preview displayed in jobhistory server ui. Contributed by Xuan Gong.
Date Wed, 01 Nov 2017 22:00:34 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 32a712a74 -> d1f8854a1


YARN-7400. Incorrect log preview displayed in jobhistory server ui. Contributed by Xuan Gong.

(cherry picked from commit d57dba99428cbe3f3dfcec834d79f709e7529ef9)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/d1f8854a
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/d1f8854a
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/d1f8854a

Branch: refs/heads/branch-2
Commit: d1f8854a1b9ff2473c1784aa8a8bb06a61819359
Parents: 32a712a
Author: Junping Du <junping_du@apache.org>
Authored: Wed Nov 1 14:48:16 2017 -0700
Committer: Junping Du <junping_du@apache.org>
Committed: Wed Nov 1 14:50:44 2017 -0700

----------------------------------------------------------------------
 .../filecontroller/ifile/IndexedFileAggregatedLogsBlock.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/d1f8854a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/logaggregation/filecontroller/ifile/IndexedFileAggregatedLogsBlock.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/logaggregation/filecontroller/ifile/IndexedFileAggregatedLogsBlock.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/logaggregation/filecontroller/ifile/IndexedFileAggregatedLogsBlock.java
index 021e011..25f493e 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/logaggregation/filecontroller/ifile/IndexedFileAggregatedLogsBlock.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/logaggregation/filecontroller/ifile/IndexedFileAggregatedLogsBlock.java
@@ -221,8 +221,8 @@ public class IndexedFileAggregatedLogsBlock extends LogAggregationHtmlBlock
{
                       _(" for the full log.")._();
             }
             long totalSkipped = 0;
-            while (totalSkipped < start) {
-              long ret = in.skip(start - totalSkipped);
+            while (totalSkipped < startIndex) {
+              long ret = in.skip(startIndex - totalSkipped);
               if (ret == 0) {
                 //Read one byte
                 int nextByte = in.read();


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message