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

    https://github.com/apache/spark/pull/6648#discussion_r33703872
  
    --- Diff: 
core/src/main/scala/org/apache/spark/shuffle/FileShuffleBlockResolver.scala ---
    @@ -104,11 +106,12 @@ private[spark] class FileShuffleBlockResolver(conf: 
SparkConf)
        * Get a ShuffleWriterGroup for the given map task, which will register 
it as complete
        * when the writers are closed successfully
        */
    -  def forMapTask(shuffleId: Int, mapId: Int, numBuckets: Int, serializer: 
Serializer,
    -      writeMetrics: ShuffleWriteMetrics): ShuffleWriterGroup = {
    +  def forMapTask(shuffleId: Int, mapId: Int, stageAttemptId: Int, 
numBuckets: Int,
    +      serializer: Serializer, writeMetrics: ShuffleWriteMetrics): 
ShuffleWriterGroup = {
    --- End diff --
    
    I made the change in this case.  I took a look at a few other cases, but 
didn't really feel like it would help.  Eg., in `IndexShuffleBlockResolver`, 
there are a handful of methods I added a `stageAttemptId` to.  I could have 
instead grouped it with the existing `shuffleId`, but is that grouping really 
so much more important than the other params to those methods, eg. the `mapId`? 
 I tried a bit of refactoring and that grouping felt awkward to me.


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