amplab / graphx

Former GraphX development repository. GraphX has been merged into Apache Spark; please submit pull requests there.
https://github.com/apache/spark
Apache License 2.0
357 stars 103 forks source link

Change to PrimitiveKeyOpenHashMap broke Spark core build #78

Closed ankurdave closed 10 years ago

ankurdave commented 10 years ago

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.

utgarda commented 10 years ago

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