attilapiros commented on a change in pull request #33628:
URL: https://github.com/apache/spark/pull/33628#discussion_r771539287



##########
File path: 
core/src/test/scala/org/apache/spark/storage/DiskBlockObjectWriterSuite.scala
##########
@@ -184,4 +184,22 @@ class DiskBlockObjectWriterSuite extends SparkFunSuite 
with BeforeAndAfterEach {
     writer.close()
     assert(segment.length === 0)
   }
+
+  test("calling closeAndDelete() on a partial write file") {
+    val (writer, file, writeMetrics) = createWriter()
+
+    writer.write(Long.box(20), Long.box(30))

Review comment:
       Why the `Long.box`? In the previous test this was not needed. It was 
just a simple for like:
   
https://github.com/apache/spark/blob/a1e94b56e9675514ad2546fdcac8a5af36aa2b62/core/src/test/scala/org/apache/spark/storage/DiskBlockObjectWriterSuite.scala#L168-L170
   
   What about having a for loop here and after the commit too (but with 
different number of records, like 100 and 50)? 




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