You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Chris Nauroth (JIRA)" <ji...@apache.org> on 2015/07/01 21:37:04 UTC

[jira] [Updated] (ZOOKEEPER-2227) stmk four-letter word fails execution at server while reading trace mask argument.

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-2227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Nauroth updated ZOOKEEPER-2227:
-------------------------------------
    Attachment: ZOOKEEPER-2227.001.patch

I'm attaching a patch.  Summary:
* Both the NIO and Netty connection classes now use a correctly sized buffer for reading the trace mask.
* {{FourLetterWordsTest}} has a new test to cover {{stmk}}.
* {{FourLetterWordsNettyTest}} is a new suite that subclasses {{FourLetterWordsTest}} but configures the Netty connection factory.  This will repeat all of the four-letter word tests through Netty.

> stmk four-letter word fails execution at server while reading trace mask argument.
> ----------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2227
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2227
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.3.0
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>         Attachments: ZOOKEEPER-2227.001.patch
>
>
> When the server handles the {{stmk}} four-letter word, it attempts to read an 8-byte Java {{long}} from the request as the trace mask argument.  The read fails, because the destination buffer's capacity is only 4 bytes.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)