Skip to content

Commit

Permalink
Change Accumulators to private[spark] instead of adding mima exclude …
Browse files Browse the repository at this point in the history
…to get around false positive in mima tests
  • Loading branch information
Nathan Kronenfeld committed Dec 10, 2014
1 parent b6c2180 commit a581f3f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/Accumulators.scala
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ object AccumulatorParam {

// TODO: The multi-thread support in accumulators is kind of lame; check
// if there's a more intuitive way of doing it right
private object Accumulators {
private[spark] object Accumulators {
// TODO: Use soft references? => need to make readObject work properly then
val originals = Map[Long, Accumulable[_, _]]()
val localAccums = new ThreadLocal[Map[Long, Accumulable[_, _]]]() {
Expand Down
4 changes: 0 additions & 4 deletions project/MimaExcludes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ object MimaExcludes {
"org.apache.spark.mllib.linalg.Matrices.randn"),
ProblemFilters.exclude[MissingMethodProblem](
"org.apache.spark.mllib.linalg.Matrices.rand")
) ++ Seq(
// SPARK-4772
ProblemFilters.exclude[IncompatibleResultTypeProblem](
"org.apache.spark.Accumulators.localAccums")
)

case v if v.startsWith("1.2") =>
Expand Down

0 comments on commit a581f3f

Please sign in to comment.