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

    https://github.com/apache/spark/pull/4708#discussion_r27069517
  
    --- Diff: core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala 
---
    @@ -877,8 +889,17 @@ class DAGScheduler(
           // SparkListenerStageCompleted here in case there are no tasks to 
run.
           outputCommitCoordinator.stageEnd(stage.id)
           listenerBus.post(SparkListenerStageCompleted(stage.latestInfo))
    -      logDebug("Stage " + stage + " is actually done; %b %d %d".format(
    -        stage.isAvailable, stage.numAvailableOutputs, stage.numPartitions))
    +
    +      val debugString = stage match {
    +        case stage: ShuffleMapStage =>
    +          "Stage " + stage + (" is actually done; " +
    +            s"(available: ${stage.isAvailable}," +
    +            s"available outputs: ${stage.numAvailableOutputs}," +
    +            s"partitions: ${stage.numPartitions})")
    +        case stage : ResultStage =>
    +          "Stage " + stage + s" is actually done; (partitions: 
${stage.numPartitions})"
    --- End diff --
    
    can you just do string interpolation all the way instead of a mixture of 
both? same in L895


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to