Skip to content

Commit b2fc541

Browse files
committed
Thu Apr 7 16:38:01 PDT 2016
1 parent 9104f0c commit b2fc541

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

core/src/main/scala/org/apache/spark/executor/Executor.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,3 @@ private[spark] object Executor {
520520
// used instead.
521521
val taskDeserializationProps: ThreadLocal[Properties] = new ThreadLocal[Properties]
522522
}
523-
524-
object Debug {
525-
val s = Executor.taskDeserializationProps
526-
}

sql/core/src/test/scala/org/apache/spark/sql/execution/UnsafeFixedWidthAggregationMapSuite.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
package org.apache.spark.sql.execution
1919

20+
import java.util.Properties
21+
2022
import scala.collection.mutable
2123
import scala.util.{Random, Try}
2224
import scala.util.control.NonFatal
@@ -71,6 +73,7 @@ class UnsafeFixedWidthAggregationMapSuite
7173
taskAttemptId = Random.nextInt(10000),
7274
attemptNumber = 0,
7375
taskMemoryManager = taskMemoryManager,
76+
localProperties = new Properties,
7477
metricsSystem = null))
7578

7679
try {

sql/core/src/test/scala/org/apache/spark/sql/execution/UnsafeKVExternalSorterSuite.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
package org.apache.spark.sql.execution
1919

20+
import java.util.Properties
21+
2022
import scala.util.Random
2123

2224
import org.apache.spark._
@@ -117,6 +119,7 @@ class UnsafeKVExternalSorterSuite extends SparkFunSuite with SharedSQLContext {
117119
taskAttemptId = 98456,
118120
attemptNumber = 0,
119121
taskMemoryManager = taskMemMgr,
122+
localProperties = new Properties,
120123
metricsSystem = null))
121124

122125
val sorter = new UnsafeKVExternalSorter(

sql/core/src/test/scala/org/apache/spark/sql/execution/UnsafeRowSerializerSuite.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
package org.apache.spark.sql.execution
1919

2020
import java.io.{ByteArrayInputStream, ByteArrayOutputStream, File}
21+
import java.util.Properties
2122

2223
import org.apache.spark._
2324
import org.apache.spark.memory.TaskMemoryManager
@@ -113,7 +114,7 @@ class UnsafeRowSerializerSuite extends SparkFunSuite with LocalSparkContext {
113114
}
114115
val taskMemoryManager = new TaskMemoryManager(sc.env.memoryManager, 0)
115116
val taskContext = new TaskContextImpl(
116-
0, 0, 0, 0, taskMemoryManager, null, InternalAccumulator.create(sc))
117+
0, 0, 0, 0, taskMemoryManager, new Properties, null, InternalAccumulator.create(sc))
117118

118119
val sorter = new ExternalSorter[Int, UnsafeRow, UnsafeRow](
119120
taskContext,

0 commit comments

Comments
 (0)