You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Mike Drob (Jira)" <ji...@apache.org> on 2022/02/01 16:09:00 UTC

[jira] [Commented] (SOLR-15968) bin/solr zk always throws exception

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

Mike Drob commented on SOLR-15968:
----------------------------------

The Jenkins failure that you linked to was fixed in dfef340534c507dbc11f3c4f4254d32dcc4f67bf (pr #568)

However, I am able to reproduce this ClientCnxn exception about 50% of the time. Often, but not always, it is accompanied by {{WARN  - 2022-02-01 10:00:17.469; org.apache.zookeeper.ClientCnxn; Session 0x0 for sever localhost/0:0:0:0:0:0:0:1:9983, Closing socket connection. Attempting reconnect except it is a SessionExpiredException. => java.net.ConnectException: Connection refused}} at the start.

This looks like it comes from https://github.com/apache/zookeeper/blob/release-3.7.0/zookeeper-server/src/main/java/org/apache/zookeeper/ClientCnxn.java#L1283-L1288 which has the comment {{// closing so this is expected}}. That's not great, but maybe our only solution is to bump the ZK log level for {{bin/solr zk}} operations to ERROR instead?


> bin/solr zk always throws exception
> -----------------------------------
>
>                 Key: SOLR-15968
>                 URL: https://issues.apache.org/jira/browse/SOLR-15968
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Jan Høydahl
>            Priority: Critical
>
> To reproduce:
> {code}
> bin/solr start -c
> bin/solr zk ls /configs/_default
> {code}
> You will see a response like this
> {code}
> $ solr zk ls /configs/_default/
> managed-schema
> protwords.txt
> solrconfig.xml
> synonyms.txt
> stopwords.txt
> lang
> WARN  - 2022-02-01 13:14:48.160; org.apache.zookeeper.ClientCnxn; An exception was thrown while closing send thread for session 0x200008ad548000a. => EndOfStreamException: Unable to read additional data from server sessionid 0x200008ad548000a, likely server has closed socket
>         at org.apache.zookeeper.ClientCnxnSocketNIO.doIO(ClientCnxnSocketNIO.java:77)
> org.apache.zookeeper.ClientCnxn$EndOfStreamException: Unable to read additional data from server sessionid 0x200008ad548000a, likely server has closed socket
>         at org.apache.zookeeper.ClientCnxnSocketNIO.doIO(ClientCnxnSocketNIO.java:77) ~[zookeeper-3.6.2.jar:3.6.2]
>         at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350) ~[zookeeper-3.6.2.jar:3.6.2]
>         at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1275) ~[zookeeper-3.6.2.jar:3.6.2]
> {code}
> The command seems to succeed, so this is more an unclean shutdown of zookeeper client.
> The same error message can be seen in Jenkins tests, such as this https://jenkins.thetaphi.de/view/Solr/job/Solr-main-Windows/612/testReport/junit/org.apache.solr.cloud/SolrCLIZkUtilsTest/testCp/



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org