You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by kiszk <gi...@git.apache.org> on 2018/04/13 12:06:34 UTC

[GitHub] spark pull request #21064: [SPARK-23976][Core] Detect length overflow in UTF...

GitHub user kiszk opened a pull request:

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

    [SPARK-23976][Core] Detect length overflow in UTF8String.concat()/ByteArray.concat()

    ## What changes were proposed in this pull request?
    
    This PR detects length overflow if total elements in inputs are not acceptable.
    
    For example, when the three inputs has `0x7FFF_FF00`, `0x7FFF_FF00`, and `0xE00`, we should detect length overflow since we cannot allocate such a large structure on `byte[]`.
    On the other hand, the current algorithm can allocate the result structure with `0x1000`-byte length due to integer sum overflow.
    
    ## How was this patch tested?
    
    Existing UTs.
    If we would create UTs, we need large heap (6-8GB). It may make test environment unstable.
    If it is necessary to create UTs, I will create them.

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

    $ git pull https://github.com/kiszk/spark SPARK-23976

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

    https://github.com/apache/spark/pull/21064.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 #21064
    
----
commit 6ba94f3b6c4cc3e69e4916a1669e95ef71267a6a
Author: Kazuaki Ishizaki <is...@...>
Date:   2018-04-13T12:00:39Z

    initial commit

----


---

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


[GitHub] spark issue #21064: [SPARK-23976][Core] Detect length overflow in UTF8String...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21064
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/89338/
    Test PASSed.


---

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


[GitHub] spark issue #21064: [SPARK-23976][Core] Detect length overflow in UTF8String...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21064
  
    Merged build finished. Test PASSed.


---

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


[GitHub] spark issue #21064: [SPARK-23976][Core] Detect length overflow in UTF8String...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/21064
  
    **[Test build #89338 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/89338/testReport)** for PR 21064 at commit [`6ba94f3`](https://github.com/apache/spark/commit/6ba94f3b6c4cc3e69e4916a1669e95ef71267a6a).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

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


[GitHub] spark issue #21064: [SPARK-23976][Core] Detect length overflow in UTF8String...

Posted by kiszk <gi...@git.apache.org>.
Github user kiszk commented on the issue:

    https://github.com/apache/spark/pull/21064
  
    ping @hvanhovell


---

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


[GitHub] spark pull request #21064: [SPARK-23976][Core] Detect length overflow in UTF...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

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


---

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


[GitHub] spark issue #21064: [SPARK-23976][Core] Detect length overflow in UTF8String...

Posted by jiangxb1987 <gi...@git.apache.org>.
Github user jiangxb1987 commented on the issue:

    https://github.com/apache/spark/pull/21064
  
    @hvanhovell seems this accidentally not get merged?


---

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


[GitHub] spark issue #21064: [SPARK-23976][Core] Detect length overflow in UTF8String...

Posted by kiszk <gi...@git.apache.org>.
Github user kiszk commented on the issue:

    https://github.com/apache/spark/pull/21064
  
    cc @ueshi @hvanhovell 


---

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


[GitHub] spark issue #21064: [SPARK-23976][Core] Detect length overflow in UTF8String...

Posted by kiszk <gi...@git.apache.org>.
Github user kiszk commented on the issue:

    https://github.com/apache/spark/pull/21064
  
    ping @hvanhovell 


---

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


[GitHub] spark issue #21064: [SPARK-23976][Core] Detect length overflow in UTF8String...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21064
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution/2316/
    Test PASSed.


---

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


[GitHub] spark issue #21064: [SPARK-23976][Core] Detect length overflow in UTF8String...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on the issue:

    https://github.com/apache/spark/pull/21064
  
    shall we backport it to 2.3?


---

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


[GitHub] spark issue #21064: [SPARK-23976][Core] Detect length overflow in UTF8String...

Posted by hvanhovell <gi...@git.apache.org>.
Github user hvanhovell commented on the issue:

    https://github.com/apache/spark/pull/21064
  
    @kiszk sorry about the delay.


---

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


[GitHub] spark issue #21064: [SPARK-23976][Core] Detect length overflow in UTF8String...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/21064
  
    **[Test build #89338 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/89338/testReport)** for PR 21064 at commit [`6ba94f3`](https://github.com/apache/spark/commit/6ba94f3b6c4cc3e69e4916a1669e95ef71267a6a).


---

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


[GitHub] spark issue #21064: [SPARK-23976][Core] Detect length overflow in UTF8String...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/21064
  
    Merged build finished. Test PASSed.


---

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


[GitHub] spark issue #21064: [SPARK-23976][Core] Detect length overflow in UTF8String...

Posted by kiszk <gi...@git.apache.org>.
Github user kiszk commented on the issue:

    https://github.com/apache/spark/pull/21064
  
    ping @hvanhovell


---

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