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

    https://github.com/apache/spark/pull/22240#discussion_r212863381
  
    --- Diff: core/src/main/scala/org/apache/spark/BarrierTaskContext.scala ---
    @@ -21,25 +21,31 @@ import java.util.{Properties, Timer, TimerTask}
     
     import scala.concurrent.duration._
     import scala.language.postfixOps
    -
    -import org.apache.spark.annotation.{Experimental, Since}
    +import org.apache.spark.annotation.{DeveloperApi, Experimental, Since}
     import org.apache.spark.executor.TaskMetrics
     import org.apache.spark.memory.TaskMemoryManager
     import org.apache.spark.metrics.MetricsSystem
     import org.apache.spark.rpc.{RpcEndpointRef, RpcTimeout}
     import org.apache.spark.util.{RpcUtils, Utils}
     
    -/** A [[TaskContext]] with extra info and tooling for a barrier stage. */
    -class BarrierTaskContext(
    +/**
    + * :: Experimental ::
    + * A [[TaskContext]] with extra contextual info and tooling for tasks in a 
barrier stage.
    + * Use [[BarrierTaskContext#get]] to obtain the barrier context for a 
running barrier task.
    + */
    +@Experimental
    +@Since("2.4.0")
    +class BarrierTaskContext private[spark] (
         override val stageId: Int,
         override val stageAttemptNumber: Int,
         override val partitionId: Int,
         override val taskAttemptId: Long,
         override val attemptNumber: Int,
    -    override val taskMemoryManager: TaskMemoryManager,
    +    private[spark] override val taskMemoryManager: TaskMemoryManager,
    --- End diff --
    
    This is not exposed by `TaskContext`.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to