Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[SPARK-23815]follow up. further improve comment
  • Loading branch information
Fangshi Li committed Apr 7, 2018
commit 08b9601ee9a0850f8fea0af7c9027bdef2016857
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ class HadoopMapReduceCommitProtocol(
// According to the official hadoop FileSystem API spec, delete op should assume
// the destination is no longer present regardless of return value, thus we do not
// need to double check if finalPartPath exists before rename.
// Also, in our case, delete should return false only when finalPartPath does not
// exist. When this happens, we need to take action only if parent of finalPartPath
// Also in our case, based on the spec, delete returns false only when finalPartPath
// does not exist. When this happens, we need to take action if parent of finalPartPath
// also does not exist(e.g. the scenario described on SPARK-23815), because
// FileSystem API spec on rename op says the rename dest(finalPartPath) must have
// a parent that exists, otherwise we may get unexpected result on the rename.
Expand Down