You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kunal Khamar (JIRA)" <ji...@apache.org> on 2017/03/08 21:14:37 UTC

[jira] [Updated] (SPARK-19873) If the user changes the shuffle partition number between batches, Streaming aggregation will fail.

     [ https://issues.apache.org/jira/browse/SPARK-19873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kunal Khamar updated SPARK-19873:
---------------------------------
    Description: 
It 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 partition in offset log and enforce in next batch

> If the user changes the shuffle partition number between batches, Streaming aggregation will fail.
> --------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-19873
>                 URL: https://issues.apache.org/jira/browse/SPARK-19873
>             Project: Spark
>          Issue Type: Bug
>          Components: Structured Streaming
>    Affects Versions: 2.1.0
>            Reporter: Kunal Khamar
>
> It 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 partition in offset log and enforce in next batch



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org