cloud-fan commented on a change in pull request #29785:
URL: https://github.com/apache/spark/pull/29785#discussion_r494835305
##########
File path: core/src/test/scala/org/apache/spark/memory/TestMemoryManager.scala
##########
@@ -119,6 +119,14 @@ class TestMemoryManager(conf: SparkConf)
consequentOOM += n
}
+ /**
+ * Undos the effects of [[markExecutionAsOutOfMemoryOnce]] and
[[markconsequentOOM]] and lets
+ * calls to [[acquireExecutionMemory()]] (if there is enough memory
available).
+ */
+ def resetConsequentOOM(): Unit = synchronized {
Review comment:
nit: we can add a comment and say it's test only.
##########
File path: core/src/test/scala/org/apache/spark/memory/TestMemoryManager.scala
##########
@@ -119,6 +119,14 @@ class TestMemoryManager(conf: SparkConf)
consequentOOM += n
}
+ /**
+ * Undos the effects of [[markExecutionAsOutOfMemoryOnce]] and
[[markconsequentOOM]] and lets
+ * calls to [[acquireExecutionMemory()]] (if there is enough memory
available).
+ */
+ def resetConsequentOOM(): Unit = synchronized {
Review comment:
ah sorry I missed the class name. nvm then.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]