You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by CodingCat <gi...@git.apache.org> on 2017/02/07 18:36:47 UTC

[GitHub] spark pull request #16840: [SPARK-19499][SS]Add more notes in the comments o...

GitHub user CodingCat opened a pull request:

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

    [SPARK-19499][SS]Add more notes in the comments of Sink.addBatch() 

    ## What changes were proposed in this pull request?
    
    addBatch method in Sink trait is supposed to be a synchronous method to coordinate with the fault-tolerance design in StreamingExecution (being different with the compute() method in DStream)
    
    We need to add more notes in the method of this method to remind the developers
    
    ## How was this patch tested?
    
    existing tests

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

    $ git pull https://github.com/CodingCat/spark SPARK-19499

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

    https://github.com/apache/spark/pull/16840.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 #16840
    
----
commit 24bfa382a43c2fbbf54b24bb8f03766910216490
Author: CodingCat <zh...@gmail.com>
Date:   2016-03-07T14:37:37Z

    improve the doc for "spark.memory.offHeap.size"

commit 2209e345df4636f8fa881b3ad45084b75f9fe3eb
Author: CodingCat <zh...@gmail.com>
Date:   2016-03-07T19:00:16Z

    fix

commit f2d9db1b725c6dcadee5ee1a7e43d5fbb601f367
Author: CodingCat <zh...@gmail.com>
Date:   2016-12-28T03:52:41Z

    Merge branch 'master' of https://github.com/apache/spark

commit dd409b4c7a5afe07cfe6b36691bed42049a5c7b2
Author: CodingCat <zh...@gmail.com>
Date:   2017-01-13T04:10:40Z

    Merge branch 'master' of https://github.com/apache/spark

commit f026adebb787a09dc4cc90f87dc94590ab1816f7
Author: CodingCat <zh...@gmail.com>
Date:   2017-01-25T03:53:56Z

    Merge branch 'master' of https://github.com/apache/spark

commit 535b60eb19b272fe3f4b421be16945bf92e60343
Author: CodingCat <zh...@gmail.com>
Date:   2017-02-07T16:37:05Z

    Merge branch 'master' of https://github.com/apache/spark

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16840: [SPARK-19499][SS]Add more notes in the comments of Sink....

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

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


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request #16840: [SPARK-19499][SS]Add more notes in the comments o...

Posted by zsxwing <gi...@git.apache.org>.
Github user zsxwing commented on a diff in the pull request:

    https://github.com/apache/spark/pull/16840#discussion_r99902500
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/Sink.scala ---
    @@ -31,8 +31,11 @@ trait Sink {
        * this method is called more than once with the same batchId (which will happen in the case of
        * failures), then `data` should only be added once.
        *
    -   * Note: You cannot apply any operators on `data` except consuming it (e.g., `collect/foreach`).
    +   * Note 1: You cannot apply any operators on `data` except consuming it (e.g., `collect/foreach`).
        * Otherwise, you may get a wrong result.
    +   *
    +   * Note 2: The method is supposed to be executed synchronously, i.e. the method should only return
    +   * after data is added to sink successfully.
    --- End diff --
    
    nit: data is added -> data is consumed. `add` may be not clear as you can also add `DataFrame` to a collection and do nothing.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16840: [SPARK-19499][SS]Add more notes in the comments of Sink....

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

    https://github.com/apache/spark/pull/16840
  
    thanks


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16840: [SPARK-19499][SS]Add more notes in the comments of Sink....

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

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


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16840: [SPARK-19499][SS]Add more notes in the comments of Sink....

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

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


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16840: [SPARK-19499][SS]Add more notes in the comments of Sink....

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

    https://github.com/apache/spark/pull/16840
  
    **[Test build #72535 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/72535/testReport)** for PR 16840 at commit [`a58e1c8`](https://github.com/apache/spark/commit/a58e1c81272d3649a8f6c2f1f69c8c7c5492a95a).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16840: [SPARK-19499][SS]Add more notes in the comments of Sink....

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

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


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request #16840: [SPARK-19499][SS]Add more notes in the comments o...

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

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


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16840: [SPARK-19499][SS]Add more notes in the comments of Sink....

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

    https://github.com/apache/spark/pull/16840
  
    LGTM. Thanks. Merging to master and 2.1.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16840: [SPARK-19499][SS]Add more notes in the comments of Sink....

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

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


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16840: [SPARK-19499][SS]Add more notes in the comments of Sink....

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

    https://github.com/apache/spark/pull/16840
  
    **[Test build #72527 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/72527/testReport)** for PR 16840 at commit [`d9222d7`](https://github.com/apache/spark/commit/d9222d7b0a1f41be0a77c80f2229a3714032f0fb).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16840: [SPARK-19499][SS]Add more notes in the comments of Sink....

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

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


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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