Skip to content

Commit

Permalink
Fix docs and style nit.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdblue committed Feb 12, 2018
1 parent ec96856 commit 538bc86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Expand Up @@ -89,10 +89,10 @@ default void onDataWriterCommit(WriterCommitMessage message) {}
* is undefined and @{@link #abort(WriterCommitMessage[])} may not be able to deal with it.
*
* Note that speculative execution may cause multiple tasks to run for a partition. By default,
* Spark uses the commit coordinator to allow only one attempt to commit. Implementations can
* Spark uses the commit coordinator to allow at most one attempt to commit. Implementations can
* disable this behavior by overriding {@link #useCommitCoordinator()}. If disabled, multiple
* attempts may have committed successfully and all successful commit messages are passed to this
* commit method.
* attempts may have committed successfully and one successful commit message per task will be
* passed to this commit method. The remaining commit messages are ignored by Spark.
*/
void commit(WriterCommitMessage[] messages);

Expand Down
Expand Up @@ -135,7 +135,6 @@ object DataWritingSparkTask extends Logging {
if (commitAuthorized) {
logInfo(s"Writer for stage $stageId, task $partId.$attemptId is authorized to commit.")
dataWriter.commit()

} else {
val message = s"Stage $stageId, task $partId.$attemptId: driver did not authorize commit"
logInfo(message)
Expand Down

0 comments on commit 538bc86

Please sign in to comment.