Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Commit 6308c65

Browse files
ash211cloud-fan
authored andcommitted
[SPARK-21953] Show both memory and disk bytes spilled if either is present
As written now, there must be both memory and disk bytes spilled to show either of them. If there is only one of those types of spill recorded, it will be hidden. Author: Andrew Ash <[email protected]> Closes apache#19164 from ash211/patch-3.
1 parent 6adf67d commit 6308c65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/ui/jobs/UIData.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private[spark] object UIData {
110110
def hasOutput: Boolean = outputBytes > 0
111111
def hasShuffleRead: Boolean = shuffleReadTotalBytes > 0
112112
def hasShuffleWrite: Boolean = shuffleWriteBytes > 0
113-
def hasBytesSpilled: Boolean = memoryBytesSpilled > 0 && diskBytesSpilled > 0
113+
def hasBytesSpilled: Boolean = memoryBytesSpilled > 0 || diskBytesSpilled > 0
114114
}
115115

116116
/**

0 commit comments

Comments
 (0)