srowen commented on a change in pull request #24463:
[SPARK-27571][CORE][YARN][EXAMPLES] Avoid scala.language.reflectiveCalls
URL: https://github.com/apache/spark/pull/24463#discussion_r278763059
##########
File path: core/src/test/scala/org/apache/spark/storage/MemoryStoreSuite.scala
##########
@@ -62,19 +61,18 @@ class MemoryStoreSuite
def makeMemoryStore(maxMem: Long): (MemoryStore, BlockInfoManager) = {
val memManager = new UnifiedMemoryManager(conf, maxMem, maxMem / 2, 1)
val blockInfoManager = new BlockInfoManager
+ var memoryStore: MemoryStore = null
Review comment:
The way Scala closures work, the inner class will see updates to this var.
----------------------------------------------------------------
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]