imback82 commented on a change in pull request #24857: [MINOR][CORE] Remove
unused variables, unused imports, etc.
URL: https://github.com/apache/spark/pull/24857#discussion_r293462860
##########
File path:
core/src/main/scala/org/apache/spark/memory/ExecutionMemoryPool.scala
##########
@@ -151,7 +151,7 @@ private[memory] class ExecutionMemoryPool(
*/
def releaseMemory(numBytes: Long, taskAttemptId: Long): Unit =
lock.synchronized {
val curMem = memoryForTask.getOrElse(taskAttemptId, 0L)
- var memoryToFree = if (curMem < numBytes) {
+ val memoryToFree = if (curMem < numBytes) {
Review comment:
I changed the title and description. @dongjoon-hyun please let me know if
@srowen's suggenstion is OK with you.
----------------------------------------------------------------
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]