Skip to content

Commit 6fd74d8

Browse files
committed
Revert "[MINOR] [CORE] Warn users who try to cache RDDs with dynamic allocation on."
This reverts commit d208047.
1 parent d208047 commit 6fd74d8

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

core/src/main/scala/org/apache/spark/SparkContext.scala

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,11 +1150,6 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
11501150
* Register an RDD to be persisted in memory and/or disk storage
11511151
*/
11521152
private[spark] def persistRDD(rdd: RDD[_]) {
1153-
_executorAllocationManager.foreach { _ =>
1154-
logWarning(
1155-
s"Dynamic allocation currently does not support cached RDDs. Cached data for RDD " +
1156-
s"${rdd.id} will be lost when executors are removed.")
1157-
}
11581153
persistentRdds(rdd.id) = rdd
11591154
}
11601155

0 commit comments

Comments
 (0)