You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "zhouyejoe (via GitHub)" <gi...@apache.org> on 2023/04/27 20:48:34 UTC
[GitHub] [spark] zhouyejoe commented on a diff in pull request #40412: [SPARK-42784] should still create subDir when the number of subDir in merge dir is less than conf
zhouyejoe commented on code in PR #40412:
URL: https://github.com/apache/spark/pull/40412#discussion_r1179654420
##########
core/src/test/scala/org/apache/spark/storage/DiskBlockManagerSuite.scala:
##########
@@ -108,8 +108,8 @@ class DiskBlockManagerSuite extends SparkFunSuite {
assert(Utils.getConfiguredLocalDirs(testConf).map(
rootDir => new File(rootDir, DiskBlockManager.MERGE_DIRECTORY))
.filter(mergeDir => mergeDir.exists()).length === 2)
- // mergeDir0 will be skipped as it already exists
- assert(mergeDir0.list().length === 0)
+ // mergeDir0 can not be skipped evenif it already exists
Review Comment:
Nit: evenif ====> even if
--
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-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org