Skip to content

Commit 390b45d

Browse files
committed
Fixed minor bugs.
1 parent 904cd92 commit 390b45d

File tree

2 files changed

+1
-11
lines changed
  • core/src/main/scala/org/apache/spark/util
  • streaming/src/main/scala/org/apache/spark/streaming/dstream

2 files changed

+1
-11
lines changed

core/src/main/scala/org/apache/spark/util/Utils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ private[spark] object Utils extends Logging {
906906
for (el <- trace) {
907907
if (insideSpark) {
908908
if (!classFilterFunc(el.getClassName)) {
909-
lastSparkMethod = if (el.getMethodName == "<init>") {
909+
lastSparkMethod = if (el.getMethodName == "<init>") {
910910
// Spark method is a constructor; get its class name
911911
el.getClassName.substring(el.getClassName.lastIndexOf('.') + 1)
912912
} else {

streaming/src/main/scala/org/apache/spark/streaming/dstream/DStream.scala

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -253,16 +253,6 @@ abstract class DStream[T: ClassTag] (
253253
dependencies.foreach(_.setGraph(graph))
254254
}
255255

256-
/* Set the custom RDD creation site as this thread's local property. */
257-
private def setRDDCreationSite(creationSite: CallSite): Unit = {
258-
259-
}
260-
261-
/* Get the custom RDD creation site set as this thread's local property. */
262-
private def getRDDCreationSite(): CallSite = {
263-
ssc.sparkContext.getCallSite()
264-
}
265-
266256
private[streaming] def remember(duration: Duration) {
267257
if (duration != null && duration > rememberDuration) {
268258
rememberDuration = duration

0 commit comments

Comments
 (0)