aboutsummaryrefslogtreecommitdiff
path: root/yarn
diff options
context:
space:
mode:
authorAdam Roberts <aroberts@uk.ibm.com>2015-06-10 13:21:01 -0700
committerAndrew Or <andrew@databricks.com>2015-06-10 13:21:59 -0700
commit568d1d51d695bea4389f4470cd98707f3049885a (patch)
tree2862a99f5f925d255009b0ed31a1041fd01d5ae7 /yarn
parent28e8a6ea65fd08ab9cefc4d179d5c66ffefd3eb4 (diff)
downloadspark-568d1d51d695bea4389f4470cd98707f3049885a.tar.gz
spark-568d1d51d695bea4389f4470cd98707f3049885a.tar.bz2
spark-568d1d51d695bea4389f4470cd98707f3049885a.zip
[SPARK-7756] CORE RDDOperationScope fix for IBM Java
IBM Java has an extra method when we do getStackTrace(): this is "getStackTraceImpl", a native method. This causes two tests to fail within "DStreamScopeSuite" when running with IBM Java. Instead of "map" or "filter" being the method names found, "getStackTrace" is returned. This commit addresses such an issue by using dropWhile. Given that our current method is withScope, we look for the next method that isn't ours: we don't care about methods that come before us in the stack trace: e.g. getStackTrace (regardless of how many levels this might go). IBM: java.lang.Thread.getStackTraceImpl(Native Method) java.lang.Thread.getStackTrace(Thread.java:1117) org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:104) Oracle: PRINTING STACKTRACE!!! java.lang.Thread.getStackTrace(Thread.java:1552) org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:106) I've tested this with Oracle and IBM Java, no side effects for other tests introduced. Author: Adam Roberts <aroberts@uk.ibm.com> Author: a-roberts <aroberts@uk.ibm.com> Closes #6740 from a-roberts/RDDScopeStackCrawlFix and squashes the following commits: 13ce390 [Adam Roberts] Ensure consistency with String equality checking a4fc0e0 [a-roberts] Update RDDOperationScope.scala (cherry picked from commit 19e30b48f3c6d0b72871d3e15b9564c1b2822700) Signed-off-by: Andrew Or <andrew@databricks.com>
Diffstat (limited to 'yarn')
0 files changed, 0 insertions, 0 deletions