mridulm commented on code in PR #46904:
URL: https://github.com/apache/spark/pull/46904#discussion_r1633814403
##########
core/src/main/scala/org/apache/spark/util/AccumulatorV2.scala:
##########
@@ -166,7 +166,7 @@ abstract class AccumulatorV2[IN, OUT] extends Serializable {
if (atDriverSide) {
if (!isRegistered) {
throw new UnsupportedOperationException(
- "Accumulator must be registered before send to executor")
+ s"Accumulator '${this.name.get}' must be registered before send to
executor")
Review Comment:
name need not be defined - see `name.isDefined` below.
--
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]