spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From weiqingy <...@git.apache.org>
Subject [GitHub] spark pull request #15563: [SPARK-16759][CORE] Add a configuration property ...
Date Wed, 09 Nov 2016 04:14:45 GMT
Github user weiqingy commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15563#discussion_r87131269
  
    --- Diff: core/src/main/scala/org/apache/spark/util/Utils.scala ---
    @@ -2587,17 +2589,16 @@ private[spark] class CallerContext(
        taskId: Option[Long] = None,
        taskAttemptNumber: Option[Int] = None) extends Logging {
     
    -   val appIdStr = if (appId.isDefined) s"_${appId.get}" else ""
    -   val appAttemptIdStr = if (appAttemptId.isDefined) s"_${appAttemptId.get}" else ""
    -   val jobIdStr = if (jobId.isDefined) s"_JId_${jobId.get}" else ""
    -   val stageIdStr = if (stageId.isDefined) s"_SId_${stageId.get}" else ""
    -   val stageAttemptIdStr = if (stageAttemptId.isDefined) s"_${stageAttemptId.get}" else
""
    -   val taskIdStr = if (taskId.isDefined) s"_TId_${taskId.get}" else ""
    -   val taskAttemptNumberStr =
    -     if (taskAttemptNumber.isDefined) s"_${taskAttemptNumber.get}" else ""
    -
    -   val context = "SPARK_" + from + appIdStr + appAttemptIdStr +
    -     jobIdStr + stageIdStr + stageAttemptIdStr + taskIdStr + taskAttemptNumberStr
    +   val context = "SPARK_" +
    --- End diff --
    
    Done.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


Mime
View raw message