Repository: spark
Updated Branches:
  refs/heads/master 2bcdf8c23 -> 63bc0c443


[SPARK-8098] [WEBUI] Show correct length of bytes on log page

The log page should only show desired length of bytes. Currently it shows bytes 
from the startIndex to the end of the file. The "Next" button on the page is 
always disabled.

Author: Carson Wang <[email protected]>

Closes #6640 from carsonwang/logpage and squashes the following commits:

58cb3fd [Carson Wang] Show correct length of bytes on log page


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

Branch: refs/heads/master
Commit: 63bc0c4430680cce230dd7a10d34da0492351446
Parents: 2bcdf8c
Author: Carson Wang <[email protected]>
Authored: Thu Jun 4 16:24:50 2015 -0700
Committer: Tathagata Das <[email protected]>
Committed: Thu Jun 4 16:24:50 2015 -0700

----------------------------------------------------------------------
 .../src/main/scala/org/apache/spark/deploy/worker/ui/LogPage.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/63bc0c44/core/src/main/scala/org/apache/spark/deploy/worker/ui/LogPage.scala
----------------------------------------------------------------------
diff --git 
a/core/src/main/scala/org/apache/spark/deploy/worker/ui/LogPage.scala 
b/core/src/main/scala/org/apache/spark/deploy/worker/ui/LogPage.scala
index 53f8f9a..5a1d06e 100644
--- a/core/src/main/scala/org/apache/spark/deploy/worker/ui/LogPage.scala
+++ b/core/src/main/scala/org/apache/spark/deploy/worker/ui/LogPage.scala
@@ -159,7 +159,7 @@ private[ui] class LogPage(parent: WorkerWebUI) extends 
WebUIPage("logPage") with
           offset
         }
       }
-      val endIndex = math.min(startIndex + totalLength, totalLength)
+      val endIndex = math.min(startIndex + byteLength, totalLength)
       logDebug(s"Getting log from $startIndex to $endIndex")
       val logText = Utils.offsetBytes(files, startIndex, endIndex)
       logDebug(s"Got log of length ${logText.length} bytes")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to