dongjoon-hyun commented on PR #36473:
URL: https://github.com/apache/spark/pull/36473#issuecomment-1120097496
That PR aims to minimize the diff for backporting.
```
test("SPARK-37618: Sub dirs are group writable when removing from shuffle
service enabled") {
val conf = testConf.clone
conf.set("spark.local.dir", rootDirs)
conf.set("spark.shuffle.service.enabled", "true")
conf.set("spark.shuffle.service.removeShuffle", "false")
+ val posix = POSIXFactory.getPOSIX
+ assume(posix.isNative, "Skipping test for SPARK-37618, native posix
support not found")
+
+ val oldUmask = getAndSetUmask(posix, "077")
val diskBlockManager = new DiskBlockManager(conf, deleteFilesOnStop =
true, isDriver = false)
val blockId = new TestBlockId("test")
val newFile = diskBlockManager.getFile(blockId)
@@ -163,6 +175,7 @@ class DiskBlockManagerSuite extends SparkFunSuite with
BeforeAndAfterEach with B
assert(parentDir2.exists && parentDir2.isDirectory)
val permission2 = Files.getPosixFilePermissions(parentDir2.toPath)
assert(permission2.contains(PosixFilePermission.GROUP_WRITE))
+ getAndSetUmask(posix, oldUmask)
}
```
--
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]