Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-15975

Getting an EndOfStreamException when using solr zk command-line

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 8.11.1
    • None
    • cli
    • Windows Server 2019
      Microsoft JDK

    Description

      Hi folks,

      We recently started using Solr 8.11.1 and have been receiving an EndOfStreamException when using the solr zk command-line client. I've not seen the exception when using other solr command-line features that are unrelated to zookeeper.

      The error typically does not show up for the first command issued during a Windows session, but begins showing up on all subsequent uses of the solr zk CLI.

      Below is a sample of a the error and the fact that it does not show up until the 2nd command and beyond ...

      PS C:\Users\wib\Desktop> solr zk rm -r "/configs/wib_default" -z localhost:9983
      Removing ZooKeeper node /configs/wib_default from ZooKeeper at localhost:9983 recurse: true
      PS C:\Users\wib\Desktop> solr zk rm -r "/configs/tags_default" -z localhost:9983
      Removing ZooKeeper node /configs/tags_default from ZooKeeper at localhost:9983 recurse: true
      WARN  - 2022-02-03 02:07:22.445; org.apache.zookeeper.ClientCnxn; An exception was thrown while closing send thread for session 0x1000002e3070002. => EndOfStreamException: Unable to read additional data from server sessionid 0x1000002e3070002, 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 0x1000002e3070002, 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]
      

      And below is the output of my java version ...

      PS C:\Users\wib\Desktop> java -version
      openjdk version "17.0.1" 2021-10-19 LTS
      OpenJDK Runtime Environment Microsoft-28056 (build 17.0.1+12-LTS)
      OpenJDK 64-Bit Server VM Microsoft-28056 (build 17.0.1+12-LTS, mixed mode, sharing)
      

      We're using Windows 2019 on Azure with the Microsoft build of the JDK.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ryancole Ryan Cole
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: