Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Modify the position of the filter
  • Loading branch information
witgo committed Mar 19, 2014
commit aee3569f07262500b4c0e197f079e6f4319eeefb
4 changes: 2 additions & 2 deletions core/src/main/scala/org/apache/spark/util/Utils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ private[spark] object Utils extends Logging {
*/
def getCallSiteInfo: CallSiteInfo = {
val trace = Thread.currentThread.getStackTrace().filter( el =>
(!el.getMethodName.contains("getStackTrace")))
((!el.getMethodName.contains("getStackTrace")) && (el.getClassName != "scala.Option")))

// Keep crawling up the stack trace until we find the first function not inside of the spark
// package. We track the last (shallowest) contiguous Spark method. This might be an RDD
Expand All @@ -698,7 +698,7 @@ private[spark] object Utils extends Logging {
var finished = false
var firstUserClass = "<unknown>"

for (el <- trace if el.getClassName != "scala.Option") {
for (el <- trace) {
if (!finished) {
if (SPARK_CLASS_REGEX.findFirstIn(el.getClassName).isDefined) {
lastSparkMethod = if (el.getMethodName == "<init>") {
Expand Down