You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by srowen <gi...@git.apache.org> on 2014/07/17 19:25:10 UTC

[GitHub] spark pull request: SPARK-1478.2 Fix incorrect NioServerSocketChan...

GitHub user srowen opened a pull request:

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

    SPARK-1478.2 Fix incorrect NioServerSocketChannelFactory constructor call

    The line break inadvertently means this was interpreted as a call to the no-arg constructor. This doesn't exist in older Netty even. (Also fixed a val name typo.)

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

    $ git pull https://github.com/srowen/spark SPARK-1478.2

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

    https://github.com/apache/spark/pull/1466.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 #1466
    
----
commit 59c3501262d1358f5dc5580c19f2d30858cfcabc
Author: Sean Owen <sr...@gmail.com>
Date:   2014-07-17T17:23:48Z

    Line break caused Scala to interpret NioServerSocketChannelFactory constructor as the no-arg version, which is not even present in some versions of Netty

----


---
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.
---

[GitHub] spark pull request: SPARK-1478.2 Fix incorrect NioServerSocketChan...

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

    https://github.com/apache/spark/pull/1466#issuecomment-49359229
  
    @tdas nvm - I think this just doesn't exist in 1.0 :)


---
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.
---

[GitHub] spark pull request: SPARK-1478.2 Fix incorrect NioServerSocketChan...

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

    https://github.com/apache/spark/pull/1466#discussion_r15076631
  
    --- Diff: external/flume/src/main/scala/org/apache/spark/streaming/flume/FlumeInputDStream.scala ---
    @@ -153,15 +153,15 @@ class FlumeReceiver(
     
       private def initServer() = {
         if (enableDecompression) {
    -      val channelFactory = new NioServerSocketChannelFactory
    -        (Executors.newCachedThreadPool(), Executors.newCachedThreadPool());
    -      val channelPipelieFactory = new CompressionChannelPipelineFactory()
    +      val channelFactory = new NioServerSocketChannelFactory(Executors.newCachedThreadPool(),
    +                                                             Executors.newCachedThreadPool())
    +      val channelPipelineFactory = new CompressionChannelPipelineFactory()
    --- End diff --
    
    Good catch on the spelling mistake!


---
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.
---

[GitHub] spark pull request: SPARK-1478.2 Fix incorrect NioServerSocketChan...

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

    https://github.com/apache/spark/pull/1466#issuecomment-49350436
  
    QA results for PR 1466:<br>- This patch PASSES unit tests.<br>- This patch merges cleanly<br>- This patch adds no public classes<br><br>For more information see test ouptut:<br>https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16783/consoleFull


---
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.
---

[GitHub] spark pull request: SPARK-1478.2 Fix incorrect NioServerSocketChan...

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

    https://github.com/apache/spark/pull/1466#issuecomment-49337826
  
    QA tests have started for PR 1466. This patch merges cleanly. <br>View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16783/consoleFull


---
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.
---

[GitHub] spark pull request: SPARK-1478.2 Fix incorrect NioServerSocketChan...

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

    https://github.com/apache/spark/pull/1466#issuecomment-49351619
  
    Merging this, thanks Sean for the good catch and the fix.


---
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.
---

[GitHub] spark pull request: SPARK-1478.2 Fix incorrect NioServerSocketChan...

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

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


---
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.
---

[GitHub] spark pull request: SPARK-1478.2 Fix incorrect NioServerSocketChan...

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

    https://github.com/apache/spark/pull/1466#discussion_r15076673
  
    --- Diff: external/flume/src/main/scala/org/apache/spark/streaming/flume/FlumeInputDStream.scala ---
    @@ -153,15 +153,15 @@ class FlumeReceiver(
     
       private def initServer() = {
         if (enableDecompression) {
    -      val channelFactory = new NioServerSocketChannelFactory
    -        (Executors.newCachedThreadPool(), Executors.newCachedThreadPool());
    -      val channelPipelieFactory = new CompressionChannelPipelineFactory()
    +      val channelFactory = new NioServerSocketChannelFactory(Executors.newCachedThreadPool(),
    +                                                             Executors.newCachedThreadPool())
    +      val channelPipelineFactory = new CompressionChannelPipelineFactory()
           
           new NettyServer(
             responder, 
             new InetSocketAddress(host, port),
    -        channelFactory, 
    -        channelPipelieFactory, 
    +        channelFactory,
    +        channelPipelineFactory,
    --- End diff --
    
    There was a typo in the variable name. The other line was just the IDE
    stripping a trailing space I think.
    On Jul 17, 2014 7:52 PM, "Tathagata Das" <no...@github.com> wrote:
    
    > In
    > external/flume/src/main/scala/org/apache/spark/streaming/flume/FlumeInputDStream.scala:
    >
    > >
    > >        new NettyServer(
    > >          responder,
    > >          new InetSocketAddress(host, port),
    > > -        channelFactory,
    > > -        channelPipelieFactory,
    > > +        channelFactory,
    > > +        channelPipelineFactory,
    >
    > What changed here? Was there a formatting issue?
    >
    > —
    > Reply to this email directly or view it on GitHub
    > <https://github.com/apache/spark/pull/1466/files#r15076612>.
    >


---
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.
---

[GitHub] spark pull request: SPARK-1478.2 Fix incorrect NioServerSocketChan...

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

    https://github.com/apache/spark/pull/1466#issuecomment-49358485
  
    @tdas should this be back-ported into 1.0?


---
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.
---

[GitHub] spark pull request: SPARK-1478.2 Fix incorrect NioServerSocketChan...

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

    https://github.com/apache/spark/pull/1466#discussion_r15076612
  
    --- Diff: external/flume/src/main/scala/org/apache/spark/streaming/flume/FlumeInputDStream.scala ---
    @@ -153,15 +153,15 @@ class FlumeReceiver(
     
       private def initServer() = {
         if (enableDecompression) {
    -      val channelFactory = new NioServerSocketChannelFactory
    -        (Executors.newCachedThreadPool(), Executors.newCachedThreadPool());
    -      val channelPipelieFactory = new CompressionChannelPipelineFactory()
    +      val channelFactory = new NioServerSocketChannelFactory(Executors.newCachedThreadPool(),
    +                                                             Executors.newCachedThreadPool())
    +      val channelPipelineFactory = new CompressionChannelPipelineFactory()
           
           new NettyServer(
             responder, 
             new InetSocketAddress(host, port),
    -        channelFactory, 
    -        channelPipelieFactory, 
    +        channelFactory,
    +        channelPipelineFactory,
    --- End diff --
    
    What changed here? Was there a formatting issue?


---
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.
---