spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saisai Shao (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-28202) [Core] [Test] Avoid noises of system props in SparkConfSuite
Date Tue, 02 Jul 2019 02:10:00 GMT

     [ https://issues.apache.org/jira/browse/SPARK-28202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Saisai Shao reassigned SPARK-28202:
-----------------------------------

    Assignee: ShuMing Li

> [Core] [Test] Avoid noises of system props in SparkConfSuite
> ------------------------------------------------------------
>
>                 Key: SPARK-28202
>                 URL: https://issues.apache.org/jira/browse/SPARK-28202
>             Project: Spark
>          Issue Type: Test
>          Components: Spark Core
>    Affects Versions: 3.0.0
>            Reporter: ShuMing Li
>            Assignee: ShuMing Li
>            Priority: Trivial
>             Fix For: 3.0.0
>
>
> 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] - accumulators (5 seconds, 565 milliseconds)
> [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 message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message