lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zheng Lin Edwin Yeo <edwinye...@gmail.com>
Subject Re: Error getting replica locations : unable to get autoscaling policy session when creating collection
Date Sun, 03 Feb 2019 15:54:37 GMT
Hi,

I have found that the issue is due to the https clusterprop configuration
is not correctly loaded to zookeeper. As such, they are still communicating
on http, when Solr is already configured to use https.

Regards,
Edwin

On Sat, 2 Feb 2019 at 13:49, Zheng Lin Edwin Yeo <edwinyeozl@gmail.com>
wrote:

> Hi,
>
> I am using Solr 7.6.0.
>
> When I tried to create a collection, I encountered the error of unable to
> get autoscaling policy session.
>
> I have 2 replicas running, and I am creating it with the following command:
>
> https://localhost:8983/solr/admin/collections?action=CREATE&name=collection1&numShards=1&replicationFactor=2&maxShardsPerNode=2&collection.configName=collection1
>
> What could be the reason that caused this error?
>
> This is the error which I am getting:
>
> Saturday, February 2, 2019 12:40:08 PM ERROR true
> OverseerCollectionMessageHandler Collection: calls operation: create
> failed:org.apache.solr.common.SolrException: Error getting replica
> locations : unable to get autoscaling policy session
>
> Collection: calls operation: create
> failed:org.apache.solr.common.SolrException: Error getting replica
> locations : unable to get autoscaling policy session
>
>      at
> org.apache.solr.cloud.api.collections.CreateCollectionCmd.call(CreateCollectionCmd.java:183)
>
>      at
> org.apache.solr.cloud.api.collections.OverseerCollectionMessageHandler.processMessage(OverseerCollectionMessageHandler.java:259)
>
>      at
> org.apache.solr.cloud.OverseerTaskProcessor$Runner.run(OverseerTaskProcessor.java:478)
>
>      at
> org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:209)
>
>      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>
>      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>
>      at java.lang.Thread.run(Unknown Source)
>
> Caused by: org.apache.solr.common.SolrException: unable to get autoscaling
> policy session
>
>      at
> org.apache.solr.client.solrj.cloud.autoscaling.PolicyHelper.getReplicaLocations(PolicyHelper.java:123)
>
>      at
> org.apache.solr.cloud.api.collections.Assign.getPositionsUsingPolicy(Assign.java:369)
>
>      at
> org.apache.solr.cloud.api.collections.Assign$PolicyBasedAssignStrategy.assign(Assign.java:617)
>
>      at
> org.apache.solr.cloud.api.collections.CreateCollectionCmd.buildReplicaPositions(CreateCollectionCmd.java:394)
>
>      at
> org.apache.solr.cloud.api.collections.CreateCollectionCmd.call(CreateCollectionCmd.java:178)
>
>      ... 6 more
>
> Caused by: org.apache.solr.common.SolrException:
> org.apache.solr.common.SolrException:
>
>      at
> org.apache.solr.common.cloud.rule.ImplicitSnitch.getTags(ImplicitSnitch.java:78)
>
>      at
> org.apache.solr.client.solrj.impl.SolrClientNodeStateProvider.fetchTagValues(SolrClientNodeStateProvider.java:138)
>
>      at
> org.apache.solr.client.solrj.impl.SolrClientNodeStateProvider.getNodeValues(SolrClientNodeStateProvider.java:127)
>
>      at
> org.apache.solr.client.solrj.cloud.autoscaling.Row.<init>(Row.java:66)
>
>      at
> org.apache.solr.client.solrj.cloud.autoscaling.Policy$Session.<init>(Policy.java:566)
>
>      at
> org.apache.solr.client.solrj.cloud.autoscaling.Policy.createSession(Policy.java:391)
>
>      at
> org.apache.solr.client.solrj.cloud.autoscaling.Policy.createSession(Policy.java:353)
>
>      at
> org.apache.solr.client.solrj.cloud.autoscaling.PolicyHelper$SessionRef.createSession(PolicyHelper.java:460)
>
>      at
> org.apache.solr.client.solrj.cloud.autoscaling.PolicyHelper$SessionRef.get(PolicyHelper.java:425)
>
>      at
> org.apache.solr.client.solrj.cloud.autoscaling.PolicyHelper.getSession(PolicyHelper.java:481)
>
>      at
> org.apache.solr.client.solrj.cloud.autoscaling.PolicyHelper.getReplicaLocations(PolicyHelper.java:121)
>
>      ... 10 more
>
> Caused by: org.apache.solr.common.SolrException:
>
>      at
> org.apache.solr.client.solrj.impl.SolrClientNodeStateProvider$AutoScalingSnitch.getRemoteInfo(SolrClientNodeStateProvider.java:301)
>
>      at
> org.apache.solr.common.cloud.rule.ImplicitSnitch.getTags(ImplicitSnitch.java:76)
>
>      ... 20 more
>
> Caused by: org.apache.solr.client.solrj.SolrServerException: IOException
> occured when talking to server at: http://10.33.42.58:8983/edm
>
>      at
> org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:657)
>
>      at
> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:255)
>
>      at
> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:244)
>
>      at
> org.apache.solr.client.solrj.SolrClient.request(SolrClient.java:1260)
>
>      at
> org.apache.solr.client.solrj.impl.SolrClientNodeStateProvider$ClientSnitchCtx.invoke(SolrClientNodeStateProvider.java:349)
>
>      at
> org.apache.solr.client.solrj.impl.SolrClientNodeStateProvider$AutoScalingSnitch.getRemoteInfo(SolrClientNodeStateProvider.java:274)
>
>      ... 21 more
>
> Caused by: org.apache.http.client.ClientProtocolException
>
>      at
> org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:187)
>
>      at
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
>
>      at
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
>
>      at
> org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:542)
>
>      ... 26 more
>
> Caused by: org.apache.http.ProtocolException: The server failed to respond
> with a valid HTTP response
>
>      at
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:149)
>
>      at
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
>
>      at
> org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
>
>      at
> org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)
>
>      at
> org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:165)
>
>      at
> org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
>
>      at
> org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
>
>      at
> org.apache.solr.util.stats.InstrumentedHttpRequestExecutor.execute(InstrumentedHttpRequestExecutor.java:120)
>
>      at
> org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
>
>      at
> org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
>
>      at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
>
>      at
> org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
>
>      at
> org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
>
>      ... 29 more
>
>
>
>
>
>
>
>       Saturday, February 2, 2019 12:40:08 PM ERROR true  HttpSolrCall
> null:org.apache.solr.common.SolrException: Error getting replica locations
> : unable to get autoscaling policy session
>
> null:org.apache.solr.common.SolrException: Error getting replica locations
> : unable to get autoscaling policy session
>
>      at
> org.apache.solr.client.solrj.SolrResponse.getException(SolrResponse.java:53)
>
>      at
> org.apache.solr.handler.admin.CollectionsHandler.invokeAction(CollectionsHandler.java:274)
>
>      at
> org.apache.solr.handler.admin.CollectionsHandler.handleRequestBody(CollectionsHandler.java:246)
>
>      at
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)
>
>      at
> org.apache.solr.servlet.HttpSolrCall.handleAdmin(HttpSolrCall.java:734)
>
>      at
> org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:715)
>
>      at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:496)
>
>      at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:377)
>
>      at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:323)
>
>      at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1634)
>
>      at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
>
>      at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
>
>      at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
>
>      at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
>
>      at
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
>
>      at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
>
>      at
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
>
>      at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317)
>
>      at
> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
>
>      at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
>
>      at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
>
>      at
> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
>
>      at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219)
>
>      at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
>
>      at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:219)
>
>      at
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
>
>      at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
>
>      at
> org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335)
>
>      at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
>
>      at org.eclipse.jetty.server.Server.handle(Server.java:531)
>
>      at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)
>
>      at
> org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
>
>      at
> org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)
>
>      at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
>
>      at
> org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:291)
>
>      at
> org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:151)
>
>      at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
>
>      at
> org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
>
>      at
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
>
>      at
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
>
>      at
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
>
>      at
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
>
>      at
> org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
>
>      at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:762)
>
>      at
> org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:680)
>
>      at java.lang.Thread.run(Unknown Source)
>
>
>
> Regards,
> Edwin
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message