mirror of https://github.com/apache/lucene.git
set timeout on sync request
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1241059 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
de88978db0
commit
d98d63d83e
|
@ -188,6 +188,8 @@ public class SyncStrategy {
|
|||
"false"));
|
||||
CommonsHttpSolrServer server = new CommonsHttpSolrServer(
|
||||
node.getCoreUrl());
|
||||
server.setConnectionTimeout(15000);
|
||||
server.setSoTimeout(15000);
|
||||
//System.out.println("ask " + node.getCoreUrl() + " to sync");
|
||||
NamedList rsp = server.request(qr);
|
||||
//System.out.println("response about syncing to leader:" + rsp + " node:"
|
||||
|
|
Loading…
Reference in New Issue