amplab / graphx

Former GraphX development repository. GraphX has been merged into Apache Spark; please submit pull requests there.

Home Page:https://github.com/apache/spark

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change to PrimitiveKeyOpenHashMap broke Spark core build

ankurdave opened this issue · comments

Running sbt/sbt doc gives the following error:

[error] /Users/ankurdave/repos/graphx/core/src/main/scala/org/apache/spark/storage/ShuffleBlockManager.scala:172: not enough arguments for constructor PrimitiveKeyOpenHashMap: (initialCapacity: Int)(implicit evidence$3: ClassManifest[Int], implicit evidence$4: ClassManifest[Int])org.apache.spark.util.collection.PrimitiveKeyOpenHashMap[Int,Int]
[error]     private val mapIdToIndex = new PrimitiveKeyOpenHashMap[Int, Int]()
[error]                                ^
[info] No documentation generated with unsucessful compiler run

The PrimitiveKeyOpenHashMap constructor has a default value for its only argument, but it doesn't seem to be working. Modifying the call site to pass the default argument explicitly fixes the problem.

Same here, was able to build only after specifying the default value.