gengliangwang commented on code in PR #38567: URL: https://github.com/apache/spark/pull/38567#discussion_r1028977314
########## core/src/main/scala/org/apache/spark/status/KVUtils.scala: ########## @@ -80,6 +89,44 @@ private[spark] object KVUtils extends Logging { db } + def createKVStore( + storePath: Option[File], + diskBackend: HybridStoreDiskBackend.Value, + conf: SparkConf): KVStore = { + storePath.map { path => + val dir = diskBackend match { + case LEVELDB => "listing.ldb" + case ROCKSDB => "listing.rdb" + } + + val dbPath = Files.createDirectories(new File(path, dir).toPath()).toFile() + Utils.chmod700(dbPath) + + Review Comment: Thanks, removed -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org