LiShuMing opened a new pull request #24998: [Core] [Test] Avoid noises of 
system props in SparkConfSuite
URL: https://github.com/apache/spark/pull/24998
 
 
   When SPARK_HOME of env is set and contains a specific `spark-defaults,conf`, 
`org.apache.spark.util.loadDefaultSparkProperties` method may noise `system 
props`. So when runs `core/test` module, it is possible to fail to run 
`SparkConfSuite` .
   
    It's easy to repair by setting `loadDefaults` in `SparkConf` to be false.
   ```
   
   ```
   [info] - deprecated configs *** FAILED *** (79 milliseconds)
   [info] 7 did not equal 4 (SparkConfSuite.scala:266)
   [info] org.scalatest.exceptions.TestFailedException:
   [info] at 
org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:528)
   [info] at 
org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:527)
   [info] at 
org.scalatest.FunSuite.newAssertionFailedException(FunSuite.scala:1560)
   [info] at 
org.scalatest.Assertions$AssertionsHelper.macroAssert(Assertions.scala:501)
   [info] at 
org.apache.spark.SparkConfSuite.$anonfun$new$26(SparkConfSuite.scala:266)
   [info] at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
   [info] at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
   [info] at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
   [info] at org.scalatest.Transformer.apply(Transformer.scala:22)
   [info] at org.scalatest.Transformer.apply(Transformer.scala:20)
   [info] at org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:186)
   [info] at org.apache.spark.SparkFunSuite.withFixture(SparkFunSuite.scala:149)
   [info] at 
org.scalatest.FunSuiteLike.invokeWithFixture$1(FunSuiteLike.scala:184)
   [info] at 
org.scalatest.FunSuiteLike.$anonfun$runTest$1(FunSuiteLike.scala:196)
   [info] at org.scalatest.SuperEngine.runTestImpl(Engine.scala:289)
   
   ```
   
   
   ```

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