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

    https://github.com/apache/spark/pull/18099#discussion_r118394510
  
    --- Diff: core/src/main/scala/org/apache/spark/storage/BlockManager.scala 
---
    @@ -454,14 +454,20 @@ private[spark] class BlockManager(
           case Some(info) =>
             val level = info.level
             logDebug(s"Level for block $blockId is $level")
    +        val taskAttemptId = 
Option(TaskContext.get()).map(_.taskAttemptId())
    --- End diff --
    
    Hi, @jiangxb1987. Looks like the same way to get `taskAttemptId` as 
`BlockInfoManger`. What's the difference to get the `taskAttemptId` instead of 
`BlockInfoManager.currentTaskAttemptId` ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to