Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/10058#discussion_r53536398
--- Diff:
core/src/main/scala/org/apache/spark/storage/StorageStatusListener.scala ---
@@ -29,14 +30,20 @@ import org.apache.spark.scheduler._
* This class is thread-safe (unlike JobProgressListener)
*/
@DeveloperApi
-class StorageStatusListener extends SparkListener {
+class StorageStatusListener(conf: SparkConf) extends SparkListener {
// This maintains only blocks that are cached (i.e. storage level is not
StorageLevel.NONE)
private[storage] val executorIdToStorageStatus = mutable.Map[String,
StorageStatus]()
+ private[storage] val deadExecutorStorageStatus = new
mutable.ListBuffer[StorageStatus]()
+ private[this] val retainedDeadExecutors =
conf.getInt("spark.ui.retainedDeadExecutors", 100)
- def storageStatusList: Seq[StorageStatus] = synchronized {
--- End diff --
can you keep this name for backward compatibility
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]