dongjoon-hyun commented on code in PR #54575:
URL: https://github.com/apache/spark/pull/54575#discussion_r2881567389


##########
core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala:
##########
@@ -106,7 +106,12 @@ private[history] class FsHistoryProvider(conf: SparkConf, 
clock: Clock)
   // Number of threads used to compact rolling event logs.
   private val numCompactThreads = conf.get(History.NUM_COMPACT_THREADS)
 
-  private val logDir = conf.get(History.HISTORY_LOG_DIR)
+  private val logDirs = conf.get(History.HISTORY_LOG_DIR)
+    .split(",").map(_.trim).filter(_.nonEmpty).toSeq
+  require(logDirs.nonEmpty, "spark.history.fs.logDirectory must specify at 
least one directory.")
+
+  // For backward compatibility, keep logDir pointing to the first directory.
+  private val logDir = logDirs.head

Review Comment:
   What happens when we remove this? I'm wondering who use this?



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to