Skip to content

Commit

Permalink
This fixes #1866 (#4525)
Browse files Browse the repository at this point in the history
Make this more consistent with implementation of FileFormatWriter change implemented in SPARK-30227 by adding finallyBlock with close() call on dataWriter

Signed-off-by: Navin Kumar <navink@nvidia.com>
  • Loading branch information
NVnavkumar authored Jan 14, 2022
1 parent b64e316 commit 957da55
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ object GpuFileFormatWriter extends Logging {
// If there is an error, abort the task
dataWriter.abort()
logError(s"Job $jobId aborted.")
}, finallyBlock = {
dataWriter.close()
})
} catch {
case e: FetchFailedException =>
Expand Down

0 comments on commit 957da55

Please sign in to comment.