Skip to content

Commit 53b3f6d

Browse files
committed
Correct behavior when writing unopened file
1 parent 701d045 commit 53b3f6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/storage/BlockObjectWriter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ private[spark] class DiskBlockObjectWriter(
154154
objOut.flush()
155155
bs.flush()
156156
close()
157-
finalPosition = file.length()
158157
}
158+
finalPosition = file.length()
159159
}
160160

161161
// Discard current writes. We do this by flushing the outstanding writes and then

0 commit comments

Comments
 (0)