srowen commented on a change in pull request #24368: [MINOR][CORE] Added 
Constant instead of referring string literal used from many places
URL: https://github.com/apache/spark/pull/24368#discussion_r275158787
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/memory/MemoryManager.scala
 ##########
 @@ -255,7 +255,7 @@ private[spark] abstract class MemoryManager(
     }
     val size = ByteArrayMethods.nextPowerOf2(maxTungstenMemory / cores / 
safetyFactor)
     val default = math.min(maxPageSize, math.max(minPageSize, size))
-    conf.getSizeAsBytes("spark.buffer.pageSize", default)
+    conf.getSizeAsBytes(BUFFER_PAGESIZE.key, default)
 
 Review comment:
   If this is a byteConf, can this just use `conf.get()`?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to