squito commented on a change in pull request #25951: [SPARK-28917][CORE] 
Synchronize access to RDD mutable state.
URL: https://github.com/apache/spark/pull/25951#discussion_r329244755
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/rdd/RDD.scala
 ##########
 @@ -1807,7 +1830,7 @@ abstract class RDD[T: ClassTag](
   /** A description of this RDD and its recursive dependencies for debugging. 
*/
   def toDebugString: String = {
     // Get a debug description of an rdd without its children
-    def debugSelf(rdd: RDD[_]): Seq[String] = {
+    def debugSelf(rdd: RDD[_]): Seq[String] = stateLock.synchronized {
       import Utils.bytesToString
 
       val persistence = if (storageLevel != StorageLevel.NONE) 
storageLevel.description else ""
 
 Review comment:
   good point, thanks

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to