cloud-fan commented on code in PR #44321:
URL: https://github.com/apache/spark/pull/44321#discussion_r1428552502
##########
core/src/main/scala/org/apache/spark/scheduler/TaskInfo.scala:
##########
@@ -75,14 +75,47 @@ class TaskInfo(
* accumulable to be updated multiple times in a single task or for two
accumulables with the
* same name but different IDs to exist in a task.
*/
- def accumulables: Seq[AccumulableInfo] = _accumulables
+ def accumulables: Seq[AccumulableInfo] = {
+ if (throwOnAccumulablesCall) {
+ throw new IllegalStateException("Accumulables for the TaskInfo have been
cleared")
Review Comment:
let's use `SparkException.internalError`
--
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]