GitHub user 10110346 opened a pull request:

    https://github.com/apache/spark/pull/20544

    [SPARK-23358][CORE]When the number of partitions is greater than 2^28, it 
will result in an error result

    ## What changes were proposed in this pull request?
    In the `checkIndexAndDataFile`,the `blocks` is the ` Int` type,  when it is 
greater than 2^28, `blocks*8` will overflow, and this will result in an error 
result.
    In fact, `blocks` is actually the number of partitions.
    
    ## How was this patch tested?
    Manual test


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/10110346/spark overflow

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/20544.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #20544
    
----
commit 9ad0bfdc00373a9732338e17ca2dfa05b0c28cfb
Author: liuxian <liu.xian3@...>
Date:   2018-02-08T11:13:41Z

    fix

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to