You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "maoling (JIRA)" <ji...@apache.org> on 2017/07/31 05:21:01 UTC
[jira] [Commented] (ZOOKEEPER-2857) Server deal command has problem
[ https://issues.apache.org/jira/browse/ZOOKEEPER-2857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16106812#comment-16106812 ]
maoling commented on ZOOKEEPER-2857:
------------------------------------
Initialized may be a flag that distinguishes a real client connection from a cmd fourletter .the main logic is in NIOServerCnxn#doIO and I debug it using org.apache.zookeeper.server.quorum.WatchLeakTest#testWatchesLeak.can you give more your description?
> Server deal command has problem
> -------------------------------
>
> Key: ZOOKEEPER-2857
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2857
> Project: ZooKeeper
> Issue Type: Bug
> Components: server
> Affects Versions: 3.3.0
> Reporter: Bo Hu
>
> NIOServerCnxn.java
> private boolean readLength(SelectionKey k) throws IOException
> if (!initialized && checkFourLetterWord(sk, len)) {
> return false;
> }
> I think this is a problem. when initialized is true, it also need execute checkFourLetterWord, but it don't execute.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)