Skip to content

Commit a2f4c1b

Browse files
author
Marcelo Vanzin
committed
Fix log message (task attempt -> stage attempt).
1 parent 5437d4a commit a2f4c1b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/src/main/scala/org/apache/spark/scheduler/OutputCommitCoordinator.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,23 +170,23 @@ private[spark] class OutputCommitCoordinator(conf: SparkConf, isDriver: Boolean)
170170
attemptNumber: Int): Boolean = synchronized {
171171
stageStates.get(stage) match {
172172
case Some(state) if attemptFailed(state, stageAttempt, partition, attemptNumber) =>
173-
logInfo(s"Commit denied for stage=$stage/$attemptNumber, partition=$partition: " +
173+
logInfo(s"Commit denied for stage=$stage/$stageAttempt, partition=$partition: " +
174174
s"task attempt $attemptNumber already marked as failed.")
175175
false
176176
case Some(state) =>
177177
val existing = state.authorizedCommitters(partition)
178178
if (existing == null) {
179-
logDebug(s"Commit allowed for stage=$stage/$attemptNumber, partition=$partition, " +
179+
logDebug(s"Commit allowed for stage=$stage/$stageAttempt, partition=$partition, " +
180180
s"task attempt $attemptNumber")
181181
state.authorizedCommitters(partition) = TaskIdentifier(stageAttempt, attemptNumber)
182182
true
183183
} else {
184-
logDebug(s"Commit denied for stage=$stage/$attemptNumber, partition=$partition: " +
184+
logDebug(s"Commit denied for stage=$stage/$stageAttempt, partition=$partition: " +
185185
s"already committed by $existing")
186186
false
187187
}
188188
case None =>
189-
logDebug(s"Commit denied for stage=$stage/$attemptNumber, partition=$partition: " +
189+
logDebug(s"Commit denied for stage=$stage/$stageAttempt, partition=$partition: " +
190190
"stage already marked as completed.")
191191
false
192192
}

0 commit comments

Comments
 (0)