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

If the user changes the number of shuffle partitions between batches, Streaming aggregation will fail.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0
    • Structured Streaming
    • None

    Description

      If the user changes the shuffle partition number between batches, Streaming aggregation will fail.

      Here are some possible cases:

      • Change "spark.sql.shuffle.partitions"
      • Use "repartition" and change the partition number in codes
      • RangePartitioner doesn't generate deterministic partitions. Right now it's safe as we disallow sort before aggregation. Not sure if we will add some operators using RangePartitioner in future.

      Fix:
      Record # shuffle partitions in offset log and enforce in next batch

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kunalkhamar Kunal Khamar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: