Skip to content

Commit 99de4b8

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 #19164 from ash211/patch-3. (cherry picked from commit 6308c65) Signed-off-by: Wenchen Fan <[email protected]>
1 parent 3ae7ab8 commit 99de4b8

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
@@ -104,7 +104,7 @@ private[spark] object UIData {
104104
def hasOutput: Boolean = outputBytes > 0
105105
def hasShuffleRead: Boolean = shuffleReadTotalBytes > 0
106106
def hasShuffleWrite: Boolean = shuffleWriteBytes > 0
107-
def hasBytesSpilled: Boolean = memoryBytesSpilled > 0 && diskBytesSpilled > 0
107+
def hasBytesSpilled: Boolean = memoryBytesSpilled > 0 || diskBytesSpilled > 0
108108
}
109109

110110
/**

0 commit comments

Comments
 (0)