srowen commented on issue #23804: [WIP][SPARK-26896] JDK 11 module adjustments for running tests URL: https://github.com/apache/spark/pull/23804#issuecomment-466198782 I got the stack trace: ``` at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:337) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:281) at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:176) at java.base/java.lang.reflect.Field.setAccessible(Field.java:170) at org.apache.spark.util.SizeEstimator$.$anonfun$getClassInfo$2(SizeEstimator.scala:337) at org.apache.spark.util.SizeEstimator$.$anonfun$getClassInfo$2$adapted(SizeEstimator.scala:331) at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36) at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33) at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198) at org.apache.spark.util.SizeEstimator$.getClassInfo(SizeEstimator.scala:331) at org.apache.spark.util.SizeEstimator$.getClassInfo(SizeEstimator.scala:325) at org.apache.spark.util.SizeEstimator$.visitSingleObject(SizeEstimator.scala:223) at org.apache.spark.util.SizeEstimator$.estimate(SizeEstimator.scala:202) at org.apache.spark.util.SizeEstimator$.estimate(SizeEstimator.scala:70) at org.apache.spark.util.collection.SizeTracker.takeSample(SizeTracker.scala:78) at org.apache.spark.util.collection.SizeTracker.afterUpdate(SizeTracker.scala:70) at org.apache.spark.util.collection.SizeTracker.afterUpdate$(SizeTracker.scala:67) at org.apache.spark.util.collection.SizeTrackingVector.$plus$eq(SizeTrackingVector.scala:31) at org.apache.spark.storage.memory.DeserializedValuesHolder.storeValue(MemoryStore.scala:665) at org.apache.spark.storage.memory.MemoryStore.putIterator(MemoryStore.scala:222) at org.apache.spark.storage.memory.MemoryStore.putIteratorAsValues(MemoryStore.scala:299) at org.apache.spark.storage.BlockManager.$anonfun$doPutIterator$1(BlockManager.scala:1166) at org.apache.spark.storage.BlockManager.doPut(BlockManager.scala:1092) at org.apache.spark.storage.BlockManager.doPutIterator(BlockManager.scala:1157) at org.apache.spark.storage.BlockManager.putIterator(BlockManager.scala:915) at org.apache.spark.storage.BlockManager.putSingle(BlockManager.scala:1482) at org.apache.spark.broadcast.TorrentBroadcast.writeBlocks(TorrentBroadcast.scala:133) at org.apache.spark.broadcast.TorrentBroadcast.<init>(TorrentBroadcast.scala:91) at org.apache.spark.broadcast.TorrentBroadcastFactory.newBroadcast(TorrentBroadcastFactory.scala:34) at org.apache.spark.broadcast.BroadcastManager.newBroadcast(BroadcastManager.scala:62) at org.apache.spark.SparkContext.broadcast(SparkContext.scala:1427) at org.apache.spark.ml.regression.GBTRegressionModel.transformImpl(GBTRegressor.scala:249) ``` The trick is to disable the JVM optimization that removes stack traces, with `-XX:-OmitStackTraceInFastThrow` OK, it's because `SizeEstimator` is trying to make this thing accessible to estimate size. We may need to ignore fields that can't be made accessible or at least blacklist fields like this.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on 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]
