You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Patrick Hunt (JIRA)" <ji...@apache.org> on 2010/07/07 01:50:51 UTC

[jira] Created: (ZOOKEEPER-805) four letter words fail with latest ubuntu nc.openbsd

four letter words fail with latest ubuntu nc.openbsd
----------------------------------------------------

                 Key: ZOOKEEPER-805
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-805
             Project: Zookeeper
          Issue Type: Bug
          Components: server
    Affects Versions: 3.3.1, 3.4.0
            Reporter: Patrick Hunt
            Priority: Critical
             Fix For: 3.3.2, 3.4.0


In both 3.3 branch and trunk "echo stat|nc localhost 2181" fails against the ZK server on Ubuntu Lucid Lynx.

I noticed this after upgrading to lucid lynx - which is now shipping openbsd nc as the default:

OpenBSD netcat (Debian patchlevel 1.89-3ubuntu2)

vs nc traditional

[v1.10-38]

which works fine. Not sure if this is a bug in us or nc.openbsd, but it's currently not working for me. Ugh.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-805) four letter words fail with latest ubuntu nc.openbsd

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924021#action_12924021 ] 

Mahadev konar commented on ZOOKEEPER-805:
-----------------------------------------

Pat,
   You think this should go into 3.3.2?


> four letter words fail with latest ubuntu nc.openbsd
> ----------------------------------------------------
>
>                 Key: ZOOKEEPER-805
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-805
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: documentation, server
>    Affects Versions: 3.3.1, 3.4.0
>            Reporter: Patrick Hunt
>            Priority: Critical
>             Fix For: 3.3.2, 3.4.0
>
>
> In both 3.3 branch and trunk "echo stat|nc localhost 2181" fails against the ZK server on Ubuntu Lucid Lynx.
> I noticed this after upgrading to lucid lynx - which is now shipping openbsd nc as the default:
> OpenBSD netcat (Debian patchlevel 1.89-3ubuntu2)
> vs nc traditional
> [v1.10-38]
> which works fine. Not sure if this is a bug in us or nc.openbsd, but it's currently not working for me. Ugh.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-805) four letter words fail with latest ubuntu nc.openbsd

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Hunt updated ZOOKEEPER-805:
-----------------------------------

    Fix Version/s:     (was: 3.3.2)
                   3.3.3

Not a blocker, pushing to 3.3.3/3.4.0

> four letter words fail with latest ubuntu nc.openbsd
> ----------------------------------------------------
>
>                 Key: ZOOKEEPER-805
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-805
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: documentation, server
>    Affects Versions: 3.3.1, 3.4.0
>            Reporter: Patrick Hunt
>            Priority: Critical
>             Fix For: 3.3.3, 3.4.0
>
>
> In both 3.3 branch and trunk "echo stat|nc localhost 2181" fails against the ZK server on Ubuntu Lucid Lynx.
> I noticed this after upgrading to lucid lynx - which is now shipping openbsd nc as the default:
> OpenBSD netcat (Debian patchlevel 1.89-3ubuntu2)
> vs nc traditional
> [v1.10-38]
> which works fine. Not sure if this is a bug in us or nc.openbsd, but it's currently not working for me. Ugh.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-805) four letter words fail with latest ubuntu nc.openbsd

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Hunt updated ZOOKEEPER-805:
-----------------------------------

    Component/s: documentation

Thanks for pointing out that option, I wasn't aware of it. I linked to ZOOKEEPER-737 which we fixed recently. The "old" version of nc had this same behavior, but we fixed it. I'm not sure what's diff about the old/new version of nc that's causing this.

btw, we should updated the "nc" related ZK docs to point out this option. Is this option available in all nc versions? we may need to note that in the docs as well.

> four letter words fail with latest ubuntu nc.openbsd
> ----------------------------------------------------
>
>                 Key: ZOOKEEPER-805
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-805
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: documentation, server
>    Affects Versions: 3.3.1, 3.4.0
>            Reporter: Patrick Hunt
>            Priority: Critical
>             Fix For: 3.3.2, 3.4.0
>
>
> In both 3.3 branch and trunk "echo stat|nc localhost 2181" fails against the ZK server on Ubuntu Lucid Lynx.
> I noticed this after upgrading to lucid lynx - which is now shipping openbsd nc as the default:
> OpenBSD netcat (Debian patchlevel 1.89-3ubuntu2)
> vs nc traditional
> [v1.10-38]
> which works fine. Not sure if this is a bug in us or nc.openbsd, but it's currently not working for me. Ugh.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-805) four letter words fail with latest ubuntu nc.openbsd

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924037#action_12924037 ] 

Patrick Hunt commented on ZOOKEEPER-805:
----------------------------------------

Hi Mahadev, I don't think that's necessary given you can fallback to "traditional" nc, or you can use the -q option as suggested by akovi.

On my ubuntu system (lucid/maverick) I have two executables; nc.openbsd and nc.traditional. "nc" links to openbsd version by default.

Honestly I'm not sure why this is no longer working, given that we addressed the "nc closes input first" in ZOOKEEPER-737

> four letter words fail with latest ubuntu nc.openbsd
> ----------------------------------------------------
>
>                 Key: ZOOKEEPER-805
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-805
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: documentation, server
>    Affects Versions: 3.3.1, 3.4.0
>            Reporter: Patrick Hunt
>            Priority: Critical
>             Fix For: 3.3.2, 3.4.0
>
>
> In both 3.3 branch and trunk "echo stat|nc localhost 2181" fails against the ZK server on Ubuntu Lucid Lynx.
> I noticed this after upgrading to lucid lynx - which is now shipping openbsd nc as the default:
> OpenBSD netcat (Debian patchlevel 1.89-3ubuntu2)
> vs nc traditional
> [v1.10-38]
> which works fine. Not sure if this is a bug in us or nc.openbsd, but it's currently not working for me. Ugh.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-805) four letter words fail with latest ubuntu nc.openbsd

Posted by "Andras Kovi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12920875#action_12920875 ] 

Andras Kovi commented on ZOOKEEPER-805:
---------------------------------------

Hi, I'm new to Zookeeper but stumbled upon this bug too. The solution is to add the -q1 parameter to nc.

The reason is that by default nc closes the connection as soon as the stdin closes. With -q1 you can override this behavior.

Hope this helps.

> four letter words fail with latest ubuntu nc.openbsd
> ----------------------------------------------------
>
>                 Key: ZOOKEEPER-805
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-805
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.3.1, 3.4.0
>            Reporter: Patrick Hunt
>            Priority: Critical
>             Fix For: 3.3.2, 3.4.0
>
>
> In both 3.3 branch and trunk "echo stat|nc localhost 2181" fails against the ZK server on Ubuntu Lucid Lynx.
> I noticed this after upgrading to lucid lynx - which is now shipping openbsd nc as the default:
> OpenBSD netcat (Debian patchlevel 1.89-3ubuntu2)
> vs nc traditional
> [v1.10-38]
> which works fine. Not sure if this is a bug in us or nc.openbsd, but it's currently not working for me. Ugh.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-805) four letter words fail with latest ubuntu nc.openbsd

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924732#action_12924732 ] 

Mahadev konar commented on ZOOKEEPER-805:
-----------------------------------------

sure, do you want to add some documentation to zookeeper admin guide to make it clearer on using -q and the issue with openbsd?


> four letter words fail with latest ubuntu nc.openbsd
> ----------------------------------------------------
>
>                 Key: ZOOKEEPER-805
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-805
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: documentation, server
>    Affects Versions: 3.3.1, 3.4.0
>            Reporter: Patrick Hunt
>            Priority: Critical
>             Fix For: 3.3.2, 3.4.0
>
>
> In both 3.3 branch and trunk "echo stat|nc localhost 2181" fails against the ZK server on Ubuntu Lucid Lynx.
> I noticed this after upgrading to lucid lynx - which is now shipping openbsd nc as the default:
> OpenBSD netcat (Debian patchlevel 1.89-3ubuntu2)
> vs nc traditional
> [v1.10-38]
> which works fine. Not sure if this is a bug in us or nc.openbsd, but it's currently not working for me. Ugh.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.