We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 764965f commit dff1f0fCopy full SHA for dff1f0f
core/src/main/scala/org/apache/spark/storage/BlockManager.scala
@@ -1045,7 +1045,7 @@ private[spark] object BlockManager extends Logging {
1045
1046
def getMaxMemory(conf: SparkConf): Long = {
1047
val memoryFraction = conf.getDouble("spark.storage.memoryFraction", 0.6)
1048
- if (memoryFraction > 1 && memoryFraction <= 0) {
+ if (memoryFraction > 1 && memoryFraction < 0) {
1049
throw new Exception("spark.storage.memoryFraction should be between 0 and 1.")
1050
}
1051
(Runtime.getRuntime.maxMemory * memoryFraction).toLong
0 commit comments