'SOLR backup issue when running for a long time
I am running SOLR backup for a long time with a scheduled task every 5 minutes. The backup runs correctly for a few times ( I can see all the collection status completed in the response header status). After a couple of hours, it starts throwing exceptions as follows:
2022-02-21 20:45:59.920 INFO 60683 --- [ scheduling-1] org.apache.zookeeper.ZooKeeper : Initiating client connection, connectString=localhost:2181 sessionTimeout=45000 watcher=org.apache.solr.common.cloud.SolrZkClient$ProcessWatchWithExecutor@42b31bfd
2022-02-21 20:45:59.920 INFO 60683 --- [ scheduling-1] org.apache.zookeeper.ClientCnxnSocket : jute.maxbuffer value is 1048575 Bytes
2022-02-21 20:45:59.920 INFO 60683 --- [ scheduling-1] org.apache.zookeeper.ClientCnxn : zookeeper.request.timeout value is 0. feature enabled=false
2022-02-21 20:45:59.920 INFO 60683 --- [ scheduling-1] o.a.solr.common.cloud.ConnectionManager : Waiting for client to connect to ZooKeeper
2022-02-21 20:45:59.921 INFO 60683 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn : Opening socket connection to server localhost/127.0.0.1:2181.
2022-02-21 20:45:59.921 INFO 60683 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn : SASL config status: Will not attempt to authenticate using SASL (unknown error)
2022-02-21 20:45:59.922 INFO 60683 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn : Socket connection established, initiating session, client: /127.0.0.1:65228, server: localhost/127.0.0.1:2181
2022-02-21 20:45:59.927 WARN 60683 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn : Session 0x0 for sever localhost/127.0.0.1:2181, Closing socket connection. Attempting reconnect except it is a SessionExpiredException.
java.io.IOException: Connection reset by peer
at sun.nio.ch.FileDispatcherImpl.read0(Native Method) ~[na:1.8.0_181]
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) ~[na:1.8.0_181]
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) ~[na:1.8.0_181]
at sun.nio.ch.IOUtil.read(IOUtil.java:192) ~[na:1.8.0_181]
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) ~[na:1.8.0_181]
at org.apache.zookeeper.ClientCnxnSocketNIO.doIO(ClientCnxnSocketNIO.java:74) ~[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]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
