Github user rdblue commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21606#discussion_r197547079
  
    --- Diff: 
core/src/main/scala/org/apache/spark/internal/io/SparkHadoopWriter.scala ---
    @@ -76,13 +76,17 @@ object SparkHadoopWriter extends Logging {
         // Try to write all RDD partitions as a Hadoop OutputFormat.
         try {
           val ret = sparkContext.runJob(rdd, (context: TaskContext, iter: 
Iterator[(K, V)]) => {
    +        // SPARK-24552: Generate a unique "attempt ID" based on the stage 
and task atempt numbers.
    +        // Assumes that there won't be more than Short.MaxValue attempts, 
at least not concurrently.
    +        val attemptId = (context.stageAttemptNumber << 16) | 
context.attemptNumber
    --- End diff --
    
    Okay, that makes sense if this is just for Hadoop attempt IDs.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to