xwu99 commented on a change in pull request #33385:
URL: https://github.com/apache/spark/pull/33385#discussion_r675292273



##########
File path: core/src/main/scala/org/apache/spark/TaskContextImpl.scala
##########
@@ -54,6 +54,7 @@ private[spark] class TaskContextImpl(
     @transient private val metricsSystem: MetricsSystem,
     // The default value is only used in tests.
     override val taskMetrics: TaskMetrics = TaskMetrics.empty,
+    override val cpus: Int = 0,

Review comment:
       The comment said The default value is only used in tests. I changed to 
1. If there is no default, we need to change a lot of tests.




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to