Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-26697

ShuffleBlockFetcherIterator can log block sizes in addition to num blocks

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 3.0.0
    • Component/s: Shuffle, Spark Core
    • Labels:
      None

      Description

      Every so often I find myself looking at executor logs, wondering why something is going wrong (failed exec, or seems to be stuck etc) and I wish I had a bit more info about shuffle sizes. ShuffleBlockFetcherIterator logs the number of local & remote blocks, but not their sizes. It would be really easy to add in size info too.

      eg. instead of

      19/01/22 23:10:49.978 Executor task launch worker for task 8 INFO ShuffleBlockFetcherIterator: Getting 2 non-empty blocks including 1 local blocks and 1 remote blocks
      

      it should be

      19/01/22 23:10:49.978 Executor task launch worker for task 8 INFO ShuffleBlockFetcherIterator: Getting 2 (194.0 B) non-empty blocks including 1 (97.0 B) local blocks and 1 (97.0 B) remote blocks
      

      I know this is a really minor change, but I've wanted it multiple times, seems worth it.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                irashid Imran Rashid
                Reporter:
                irashid Imran Rashid
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: