parthchandra commented on code in PR #46904:
URL: https://github.com/apache/spark/pull/46904#discussion_r1633983342


##########
core/src/main/scala/org/apache/spark/util/AccumulatorV2.scala:
##########
@@ -165,8 +165,13 @@ abstract class AccumulatorV2[IN, OUT] extends Serializable 
{
   final protected def writeReplace(): Any = {
     if (atDriverSide) {
       if (!isRegistered) {
+        val printName = if (this.name.isDefined) {
+          s" '${this.name.get}' "
+        } else {
+          " "
+        }

Review Comment:
   > 
   
   With the suggested change we get two blanks in the message if the name is 
not defined. 



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