tgravescs commented on a change in pull request #33385:
URL: https://github.com/apache/spark/pull/33385#discussion_r674815040
##########
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:
I think I have similar comment here, do we really need a default here?
Perhaps more tests here than below. Also I don't think this has access to
CPUS_PER_TASK
--
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]