Skip to content

Commit d903529

Browse files
committed
Handle ConcurrentModificationExceptions in SparkEnv.environmentDetails
1 parent 7e2deb7 commit d903529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/SparkEnv.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ object SparkEnv extends Logging {
395395
val sparkProperties = (conf.getAll ++ schedulerMode).sorted
396396

397397
// System properties that are not java classpaths
398-
val systemProperties = System.getProperties.iterator.toSeq
398+
val systemProperties = Utils.getSystemProperties.toSeq
399399
val otherProperties = systemProperties.filter { case (k, _) =>
400400
k != "java.class.path" && !k.startsWith("spark.")
401401
}.sorted

0 commit comments

Comments
 (0)