You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by holdenk <gi...@git.apache.org> on 2016/02/04 00:36:13 UTC

[GitHub] spark pull request: [SPARK-13165][STREAMING][WIP] Replace deprecat...

GitHub user holdenk opened a pull request:

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

    [SPARK-13165][STREAMING][WIP] Replace deprecated synchronizedBuffer in streaming

    Building with Scala 2.11 results in the warning trait SynchronizedBuffer in package mutable is deprecated: Synchronization via traits is deprecated as it is inherently unreliable. Consider java.util.concurrent.ConcurrentLinkedQueue as an alternative - we already use ConcurrentLinkedQueue elsewhere so lets replace it.
    
    Some notes about how behaviour is different for reviewers:
    The Seq from a SynchronizedBuffer that was implicitly converted would continue to receive updates - however when we do the same conversion explicitly on the ConcurrentLinkedQueue this isn't the case. Hence changing some of the (internal & test) APIs to pass an Iterable. toSeq is safe to use if there are no more updates.

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

    $ git pull https://github.com/holdenk/spark SPARK-13165-replace-deprecated-synchronizedBuffer-in-streaming

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

    https://github.com/apache/spark/pull/11067.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 #11067
    
----
commit 64f3a2a19e8204cbb387660074c4fe83e809cdda
Author: Holden Karau <ho...@us.ibm.com>
Date:   2016-02-03T21:09:50Z

    Start moving ReceiverSupervisorImpl

commit c9b51314ee69b253104ddbbab38025b4bb2bbc7b
Author: Holden Karau <ho...@us.ibm.com>
Date:   2016-02-03T21:12:39Z

    fix import

commit 604d39d4b66f4b5686e2576cdb72a55f98469346
Author: Holden Karau <ho...@us.ibm.com>
Date:   2016-02-03T21:14:05Z

    First one ported over

commit fba519a47fcd901cd86b68e4e99843dd6dc0d8c3
Author: Holden Karau <ho...@us.ibm.com>
Date:   2016-02-03T21:25:50Z

    Update the StreamingJobProgressListener

commit 269f6920d8f45dc736ae65d6e47718dddf135417
Author: Holden Karau <ho...@us.ibm.com>
Date:   2016-02-03T22:26:07Z

    Update another batch of tests

commit cefa084165cb308a7e51716901f716eaa3899885
Author: Holden Karau <ho...@us.ibm.com>
Date:   2016-02-03T22:40:36Z

    Update block generator and remove import from inputstreamsuite

commit cf7dd4af050dfc207395edaef20664c74b4d6664
Author: Holden Karau <ho...@us.ibm.com>
Date:   2016-02-03T22:55:11Z

    change last of the tests

commit a4b96c2b5018e5985fb68d5b537a0c6fee4a517a
Author: Holden Karau <ho...@us.ibm.com>
Date:   2016-02-03T23:03:26Z

    fix long line

commit ca953c112dcd1fb674e2864b400560602ea6e7c4
Author: Holden Karau <ho...@us.ibm.com>
Date:   2016-02-03T23:23:16Z

    Fix some tests

commit a8ae3097049846296ddc11ebe440a84d9ccc753c
Author: Holden Karau <ho...@us.ibm.com>
Date:   2016-02-03T23:31:15Z

    handle empty iterables in test (not that there should be any as currently written)

commit 9dfb313420086141024b7d8b1562f32e1c2a7720
Author: Holden Karau <ho...@us.ibm.com>
Date:   2016-02-03T23:31:29Z

    s/outputBuffer/outputQueue/ for clarity

----


---
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: [SPARK-13165][STREAMING][WIP] Replace deprecat...

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

    https://github.com/apache/spark/pull/11067#issuecomment-179534097
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/50706/
    Test FAILed.


---
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: [SPARK-13165][STREAMING][WIP] Replace deprecat...

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

    https://github.com/apache/spark/pull/11067#issuecomment-179539477
  
    **[Test build #50708 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/50708/consoleFull)** for PR 11067 at commit [`716e4b3`](https://github.com/apache/spark/commit/716e4b327caa4fe72511498b8ab584ec39b826ec).


---
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: [SPARK-13165][STREAMING][WIP] Replace deprecat...

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

    https://github.com/apache/spark/pull/11067#issuecomment-179584826
  
    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: [SPARK-13165][STREAMING] Replace deprecated sy...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on the pull request:

    https://github.com/apache/spark/pull/11067#issuecomment-179985211
  
    also @zsxwing 


---
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: [SPARK-13165][STREAMING] Replace deprecated sy...

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

    https://github.com/apache/spark/pull/11067#discussion_r52061944
  
    --- Diff: streaming/src/test/scala/org/apache/spark/streaming/InputStreamsSuite.scala ---
    @@ -276,14 +276,12 @@ class InputStreamsSuite extends TestSuiteBase with BeforeAndAfter {
     
         // Verify whether all the elements received are as expected
         assert(output.size === expectedOutput.size)
    -    for (i <- 0 until output.size) {
    -      assert(output(i) === expectedOutput(i))
    -    }
    +    output.zipWithIndex.foreach{case (e, i) => assert(e == expectedOutput(i))}
    --- End diff --
    
    I think in the latest scalatest `==` is compiled as `===`


---
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: [SPARK-13165][STREAMING] Replace deprecated sy...

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

    https://github.com/apache/spark/pull/11067#discussion_r52002399
  
    --- Diff: streaming/src/test/scala/org/apache/spark/streaming/InputStreamsSuite.scala ---
    @@ -276,14 +276,12 @@ class InputStreamsSuite extends TestSuiteBase with BeforeAndAfter {
     
         // Verify whether all the elements received are as expected
         assert(output.size === expectedOutput.size)
    -    for (i <- 0 until output.size) {
    -      assert(output(i) === expectedOutput(i))
    -    }
    +    output.zipWithIndex.foreach{case (e, i) => assert(e == expectedOutput(i))}
    --- End diff --
    
    Does this need spaces around braces to pass style checks? And === vs ==?


---
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: [SPARK-13165][STREAMING][WIP] Replace deprecat...

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

    https://github.com/apache/spark/pull/11067#issuecomment-179533428
  
    **[Test build #50706 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/50706/consoleFull)** for PR 11067 at commit [`9dfb313`](https://github.com/apache/spark/commit/9dfb313420086141024b7d8b1562f32e1c2a7720).


---
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: [SPARK-13165][STREAMING] Replace deprecated sy...

Posted by holdenk <gi...@git.apache.org>.
Github user holdenk commented on the pull request:

    https://github.com/apache/spark/pull/11067#issuecomment-179700506
  
    cc @srowen 


---
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: [SPARK-13165][STREAMING][WIP] Replace deprecat...

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

    https://github.com/apache/spark/pull/11067#issuecomment-179584559
  
    **[Test build #50707 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/50707/consoleFull)** for PR 11067 at commit [`716e4b3`](https://github.com/apache/spark/commit/716e4b327caa4fe72511498b8ab584ec39b826ec).
     * 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: [SPARK-13165][STREAMING][WIP] Replace deprecat...

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

    https://github.com/apache/spark/pull/11067#issuecomment-179584827
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/50707/
    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: [SPARK-13165][STREAMING][WIP] Replace deprecat...

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

    https://github.com/apache/spark/pull/11067#issuecomment-179572665
  
    Merged build finished. Test FAILed.


---
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: [SPARK-13165][STREAMING][WIP] Replace deprecat...

Posted by holdenk <gi...@git.apache.org>.
Github user holdenk commented on the pull request:

    https://github.com/apache/spark/pull/11067#issuecomment-179535859
  
    jenkins, retest this please


---
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: [SPARK-13165][STREAMING] Replace deprecated sy...

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

    https://github.com/apache/spark/pull/11067#issuecomment-180536162
  
    **[Test build #50836 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/50836/consoleFull)** for PR 11067 at commit [`605bb84`](https://github.com/apache/spark/commit/605bb8469d235f161e28b78b018a829aa8e6e7c2).


---
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: [SPARK-13165][STREAMING][WIP] Replace deprecat...

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

    https://github.com/apache/spark/pull/11067#issuecomment-179534092
  
    Merged build finished. Test FAILed.


---
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: [SPARK-13165][STREAMING] Replace deprecated sy...

Posted by holdenk <gi...@git.apache.org>.
Github user holdenk commented on the pull request:

    https://github.com/apache/spark/pull/11067#issuecomment-181114499
  
    @tedyu I've cherry-picked in your DirectKafkaStreamSuite changes let me know if that looks _ok_ to you.


---
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: [SPARK-13165][STREAMING] Replace deprecated sy...

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

    https://github.com/apache/spark/pull/11067#issuecomment-181129907
  
    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: [SPARK-13165][STREAMING][WIP] Replace deprecat...

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

    https://github.com/apache/spark/pull/11067#issuecomment-179572324
  
    **[Test build #50708 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/50708/consoleFull)** for PR 11067 at commit [`716e4b3`](https://github.com/apache/spark/commit/716e4b327caa4fe72511498b8ab584ec39b826ec).
     * This patch **fails Spark unit 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: [SPARK-13165][STREAMING] Replace deprecated sy...

Posted by holdenk <gi...@git.apache.org>.
Github user holdenk commented on the pull request:

    https://github.com/apache/spark/pull/11067#issuecomment-180524838
  
    @srowen simplified those two places in the test code :)


---
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: [SPARK-13165][STREAMING] Replace deprecated sy...

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

    https://github.com/apache/spark/pull/11067#issuecomment-180552692
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/50836/
    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: [SPARK-13165][STREAMING] Replace deprecated sy...

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

    https://github.com/apache/spark/pull/11067#issuecomment-180552390
  
    **[Test build #50836 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/50836/consoleFull)** for PR 11067 at commit [`605bb84`](https://github.com/apache/spark/commit/605bb8469d235f161e28b78b018a829aa8e6e7c2).
     * 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: [SPARK-13165][STREAMING] Replace deprecated sy...

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

    https://github.com/apache/spark/pull/11067#discussion_r52002547
  
    --- Diff: streaming/src/test/scala/org/apache/spark/streaming/MasterFailureTest.scala ---
    @@ -215,8 +216,8 @@ object MasterFailureTest extends Logging {
     
         while(!isLastOutputGenerated && !isTimedOut) {
           // Get the output buffer
    -      val outputBuffer = ssc.graph.getOutputStreams().head.asInstanceOf[TestOutputStream[T]].output
    -      def output = outputBuffer.flatMap(x => x)
    +      val outputQueue = ssc.graph.getOutputStreams().head.asInstanceOf[TestOutputStream[T]].output
    +      def output = outputQueue.asScala.flatMap(x => x)
    --- End diff --
    
    Can the flatMap become flatten? I may be missing why


---
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: [SPARK-13165][STREAMING] Replace deprecated sy...

Posted by holdenk <gi...@git.apache.org>.
Github user holdenk commented on the pull request:

    https://github.com/apache/spark/pull/11067#issuecomment-180975255
  
    @tdas  want to take a look or since its mostly tests is that not needed?


---
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: [SPARK-13165][STREAMING] Replace deprecated sy...

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

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


---
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: [SPARK-13165][STREAMING] Replace deprecated sy...

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

    https://github.com/apache/spark/pull/11067#issuecomment-181129849
  
    **[Test build #50905 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/50905/consoleFull)** for PR 11067 at commit [`2567ef0`](https://github.com/apache/spark/commit/2567ef0b093079170635a5e2df0b98c0c831be84).
     * 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: [SPARK-13165][STREAMING] Replace deprecated sy...

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

    https://github.com/apache/spark/pull/11067#issuecomment-181115491
  
    **[Test build #50905 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/50905/consoleFull)** for PR 11067 at commit [`2567ef0`](https://github.com/apache/spark/commit/2567ef0b093079170635a5e2df0b98c0c831be84).


---
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: [SPARK-13165][STREAMING] Replace deprecated sy...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/11067#issuecomment-181763572
  
    merged to master


---
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: [SPARK-13165][STREAMING][WIP] Replace deprecat...

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

    https://github.com/apache/spark/pull/11067#issuecomment-179572667
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/50708/
    Test FAILed.


---
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: [SPARK-13165][STREAMING] Replace deprecated sy...

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

    https://github.com/apache/spark/pull/11067#discussion_r52059943
  
    --- Diff: streaming/src/test/scala/org/apache/spark/streaming/MasterFailureTest.scala ---
    @@ -215,8 +216,8 @@ object MasterFailureTest extends Logging {
     
         while(!isLastOutputGenerated && !isTimedOut) {
           // Get the output buffer
    -      val outputBuffer = ssc.graph.getOutputStreams().head.asInstanceOf[TestOutputStream[T]].output
    -      def output = outputBuffer.flatMap(x => x)
    +      val outputQueue = ssc.graph.getOutputStreams().head.asInstanceOf[TestOutputStream[T]].output
    +      def output = outputQueue.asScala.flatMap(x => x)
    --- End diff --
    
    for sure, I just wanted to try and make the changes as small as possible. I'll update this.


---
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: [SPARK-13165][STREAMING] Replace deprecated sy...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/11067#issuecomment-181233610
  
    Seems OK to me. This is all of the occurrences then? so we could add a scalastyle rule banning SynchronizedBuffer after this?


---
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: [SPARK-13165][STREAMING] Replace deprecated sy...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/11067#issuecomment-180297939
  
    Minor questions; seems fine. It's actually the same simple changes in many files and mostly touches tests


---
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: [SPARK-13165][STREAMING] Replace deprecated sy...

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

    https://github.com/apache/spark/pull/11067#issuecomment-180552689
  
    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: [SPARK-13165][STREAMING] Replace deprecated sy...

Posted by holdenk <gi...@git.apache.org>.
Github user holdenk commented on the pull request:

    https://github.com/apache/spark/pull/11067#issuecomment-181267861
  
    Yah @tedyu has a follow up PR that adds the scalastyle rule ready to rebase once this gets merged in.


---
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: [SPARK-13165][STREAMING] Replace deprecated sy...

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

    https://github.com/apache/spark/pull/11067#discussion_r52002694
  
    --- Diff: streaming/src/test/scala/org/apache/spark/streaming/StreamingListenerSuite.scala ---
    @@ -271,11 +274,16 @@ class StreamingListenerSuite extends TestSuiteBase with Matchers {
       }
     
       /** Check if a sequence of numbers is in increasing order */
    -  def isInIncreasingOrder(seq: Seq[Long]): Boolean = {
    -    for (i <- 1 until seq.size) {
    -      if (seq(i - 1) > seq(i)) {
    +  def isInIncreasingOrder(data: Iterable[Long]): Boolean = {
    --- End diff --
    
    I feel like this can be a Scala one liner by mapping to pairs of successive elements and calling exists or something to detect a misordering. Minor, not sure as I'm not at a keyboard to check it


---
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: [SPARK-13165][STREAMING][WIP] Replace deprecat...

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

    https://github.com/apache/spark/pull/11067#issuecomment-179534086
  
    **[Test build #50706 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/50706/consoleFull)** for PR 11067 at commit [`9dfb313`](https://github.com/apache/spark/commit/9dfb313420086141024b7d8b1562f32e1c2a7720).
     * This patch **fails Scala style 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: [SPARK-13165][STREAMING][WIP] Replace deprecat...

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

    https://github.com/apache/spark/pull/11067#issuecomment-179539396
  
    **[Test build #50707 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/50707/consoleFull)** for PR 11067 at commit [`716e4b3`](https://github.com/apache/spark/commit/716e4b327caa4fe72511498b8ab584ec39b826ec).


---
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: [SPARK-13165][STREAMING] Replace deprecated sy...

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

    https://github.com/apache/spark/pull/11067#discussion_r52061559
  
    --- Diff: streaming/src/test/scala/org/apache/spark/streaming/StreamingListenerSuite.scala ---
    @@ -271,11 +274,16 @@ class StreamingListenerSuite extends TestSuiteBase with Matchers {
       }
     
       /** Check if a sequence of numbers is in increasing order */
    -  def isInIncreasingOrder(seq: Seq[Long]): Boolean = {
    -    for (i <- 1 until seq.size) {
    -      if (seq(i - 1) > seq(i)) {
    +  def isInIncreasingOrder(data: Iterable[Long]): Boolean = {
    --- End diff --
    
    We could make it a one-liner (see http://stackoverflow.com/questions/7852471/idiomatic-construction-to-check-whether-a-collection-is-ordered ) but the one liners suggested don't short circuit on failure (although since we always expect this to be true the lack of short circuiting is probably ok).


---
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: [SPARK-13165][STREAMING] Replace deprecated sy...

Posted by tedyu <gi...@git.apache.org>.
Github user tedyu commented on the pull request:

    https://github.com/apache/spark/pull/11067#issuecomment-181115720
  
    It's nice of you to put related changes under one PR.


---
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: [SPARK-13165][STREAMING] Replace deprecated sy...

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

    https://github.com/apache/spark/pull/11067#issuecomment-181129908
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/50905/
    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