Ngone51 commented on a change in pull request #31869:
URL: https://github.com/apache/spark/pull/31869#discussion_r597512159
##########
File path: core/src/main/scala/org/apache/spark/ui/jobs/StagePage.scala
##########
@@ -786,9 +786,13 @@ private[spark] object ApiHelper {
stageData.accumulatorUpdates.exists { acc => acc.name != null && acc.value
!= null }
}
- def hasInput(stageData: StageData): Boolean = stageData.inputBytes > 0
+ def hasInput(stageData: StageData): Boolean = {
+ stageData.inputBytes > 0 || stageData.inputRecords > 0
Review comment:
If we're sure that it's because some resources do not provide certain
metrics rather than they counted incorrectly, then, I think the current fix
should be fine. Otherwise, I think we should fix the counting of metrics
instead(as it's a bug).
Good to see to figure out the root cause first.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]