[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-4567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17570022#comment-17570022
 ] 

Guoxiong Li commented on ZOOKEEPER-4567:
----------------------------------------

> $ while true; do echo -n .; res=`echo ruok | nc -v 127.0.0.1 2181 2>&1`; case 
> $res in (*imok*) :;; (*) echo res=$res; break;; esac; done

>From your shell script, I can know when it gets the result `imok`, it sends 
>the request repeatedly and doesn't echo the result. Actually, the server has 
>returned the messages but your script ignores them.

> Sometimes ruok closes the connection without returning anything
> ---------------------------------------------------------------
>
>                 Key: ZOOKEEPER-4567
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4567
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.7.1
>         Environment: zookeeper:3.7.1 Docker image
>            Reporter: Benoit Sigoure
>            Priority: Major
>
> {code:java}
> $ while true; do echo -n .; res=`echo ruok | nc -v 127.0.0.1 2181 2>&1`; case 
> $res in (*imok*) :;; (*) echo res=$res; break;; esac; done
> ......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................res=Connection
>  to 127.0.0.1 2181 port [tcp/*] succeeded! {code}
> Server logs don't contain smoking guns:
> {code:java}
> [...]
> 2022-06-29 19:40:07,354 [myid:1] - INFO  
> [NIOWorkerThread-4:NIOServerCnxn@514] - Processing ruok command from 
> /127.0.0.1:60440
> 2022-06-29 19:40:07,359 [myid:1] - INFO  
> [NIOWorkerThread-2:NIOServerCnxn@514] - Processing ruok command from 
> /127.0.0.1:60442
> 2022-06-29 19:40:07,364 [myid:1] - INFO  
> [NIOWorkerThread-3:NIOServerCnxn@514] - Processing ruok command from 
> /127.0.0.1:60444
> 2022-06-29 19:40:07,369 [myid:1] - INFO  
> [NIOWorkerThread-4:NIOServerCnxn@514] - Processing ruok command from 
> /127.0.0.1:60446
> 2022-06-29 19:40:10,216 [myid:1] - INFO  
> [NIOWorkerThread-2:NIOServerCnxn@514] - Processing ruok command from 
> /127.0.0.1:60490
> 2022-06-29 19:40:10,293 [myid:1] - INFO  
> [NIOWorkerThread-4:NIOServerCnxn@514] - Processing ruok command from 
> /127.0.0.1:60516 {code}
> I can reproduce this consistently very easily.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to