Github user squito commented on the pull request:
https://github.com/apache/spark/pull/11487#issuecomment-206519307
@ueshin Have you found this test to pass consistently on 2.10? It seems we
don't actually run these tests on 2.10 at all anymore, but when I run locally,
say with
```
build/sbt -Pyarn -Phadoop-2.4 -Dhadoop.version=2.6.0 -Dscala-2.10
-Pscala-2.10
test-only *.ScalaReflectionSuite
```
it sometimes works, but sometimes fails with a variety of failures like:
```
[info] - SPARK-13640: thread safety of dataTypeFor *** FAILED *** (1
second, 546 milliseconds)
[info] scala.collection.parallel.CompositeThrowable: Multiple exceptions
thrown during a parallel computation: java.lang.UnsupportedOperationException:
tail of empty list
[info] scala.collection.immutable.Nil$.tail(List.scala:339)
[info] scala.collection.immutable.Nil$.tail(List.scala:334)
[info] scala.reflect.internal.SymbolTable.popPhase(SymbolTable.scala:172)
[info]
scala.reflect.internal.Symbols$Symbol.unsafeTypeParams(Symbols.scala:1477)
[info] scala.reflect.internal.Symbols$TypeSymbol.tpe(Symbols.scala:2777)
[info]
scala.reflect.internal.Mirrors$Roots$RootPackage$.<init>(Mirrors.scala:268)
[info]
scala.reflect.internal.Mirrors$Roots.RootPackage$lzycompute(Mirrors.scala:267)
[info] scala.reflect.internal.Mirrors$Roots.RootPackage(Mirrors.scala:267)
[info] scala.reflect.internal.Mirrors$Roots.RootPackage(Mirrors.scala:245)
[info] scala.reflect.internal.Mirrors$RootsBase.init(Mirrors.scala:238)
...
```
or
```
[info] - SPARK-13640: thread safety of constructorFor *** FAILED *** (8
seconds, 59 milliseconds)
[info] scala.reflect.internal.Symbols$CyclicReference: illegal cyclic
reference involving package catalyst
[info] at
scala.reflect.internal.Symbols$TypeSymbol.tpe(Symbols.scala:2768)
[info] at
scala.reflect.internal.transform.Erasure$class.rebindInnerClass(Erasure.scala:72)
[info] at
scala.reflect.internal.transform.Transforms$$anonfun$3$$anon$1.rebindInnerClass(Transforms.scala:27)
[info] at
scala.reflect.internal.transform.Erasure$ErasureMap.eraseNormalClassRef(Erasure.scala:114)
[info] at
scala.reflect.internal.transform.Erasure$ErasureMap.apply(Erasure.scala:132)
[info] at
scala.reflect.internal.transform.Transforms$class.transformedType(Transforms.scala:39)
[info] at
scala.reflect.internal.SymbolTable.transformedType(SymbolTable.scala:13)
[info] at
scala.reflect.internal.Types$TypeApiImpl.erasure(Types.scala:306)
[info] at
scala.reflect.internal.Types$TypeApiImpl.erasure(Types.scala:298)
[info] at
org.apache.spark.sql.catalyst.ScalaReflection$class.getClassNameFromType(ScalaReflection.scala:775)
...
```
It seems like a pretty rare race -- any attempt I make to add any logging,
or even a try/catch, makes it seem to disappear (at least, less than 1 in 10
runs after any changes). Maybe this is just the same as SPARK-10719, and there
isn't anything better we can do here?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]