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

    https://github.com/apache/spark/pull/8829#discussion_r42560251
  
    --- Diff: 
core/src/main/java/org/apache/spark/shuffle/sort/BypassMergeSortShuffleWriter.java
 ---
    @@ -72,31 +80,52 @@
       private final BlockManager blockManager;
       private final Partitioner partitioner;
       private final ShuffleWriteMetrics writeMetrics;
    +  private final int shuffleId;
    +  private final int mapId;
       private final Serializer serializer;
    +  private final IndexShuffleBlockResolver shuffleBlockResolver;
     
       /** Array of file writers, one for each partition */
       private DiskBlockObjectWriter[] partitionWriters;
    +  @Nullable private MapStatus mapStatus;
    +  private long[] partitionLengths;
    +
    +  /**
    +   * Are we in the process of stopping? Because map tasks can call stop() 
with success = true
    +   * and then call stop() with success = false if they get an exception, 
we want to make sure
    +   * we don't try deleting files, etc twice.
    +   */
    +  private boolean stopping = false;
    --- End diff --
    
    Good question. This was more-or-less copied from somewhere else and it was 
originally written by someone else, so I'll have to do some sleuthing to figure 
out why we need this.


---
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