You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Yogesh Chaudhari <Yo...@harbingergroup.com.INVALID> on 2020/02/11 11:45:41 UTC

Issue to upgrade solr cloud

Hi All,

Currently we are using Solr 5.2.1 on production server and want upgrade to Solr 7.7.2.  We are using solr 5.2.1 from last 5 years, we do have millions of documents on production server. We have Solr cloud with 2 shards and 3 replicas on production server.

I have upgraded Solr 5.2.1 to Solr 6.6.6 , it is upgraded successfully on my local machine.

Now I am trying to upgrading Solr 6.6.6 to Solr 7.7.2. I have upgraded all 6 solr instances one at a time to Solr 7.7.2. I am getting below error. One shard (with 3 replicas) is upgraded successfully bu =t the another shard is giving an error (please refer below image).  Though one shard is upgraded, I can not do anything with that. I think issue is due to old indexes or documents.

[cid:image001.png@01D5E0FE.D4DE4870]

o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: no servers hosting shard: shard2

                at org.apache.solr.handler.component.HttpShardHandler.prepDistributed(HttpShardHandler.java:463)
                at org.apache.solr.handler.component.SearchHandler.getAndPrepShardHandler(SearchHandler.java:226)
                at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:267)
                at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)
                at org.apache.solr.core.SolrCore.execute(SolrCore.java:2551)
                at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711)
                at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516)
                at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:395)
                at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:341)
                at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1602)
                at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
                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:1588)
                at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
                at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
                at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
                at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
                at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1557)
                at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
                at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
                at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
                at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)
                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:502)
I am struggling from last few days to migrate solr 5.2.1 to Solr 7.7.1.

Can you please share your inputs or please assist me?

Thanks,

Yogesh Chaudhari

Re: Issue to upgrade solr cloud

Posted by Erick Erickson <er...@gmail.com>.
You really have to re-index your content in this case. This is enforced in Lucene/Solr 8. Upgrading from one version to another isn’t sufficient.

The mail server pretty aggressively strips attachments, so your picture (?) didn’t come through.

The log you posted isn’t very helpful, we’d need the logs from a node that hosts a replica from shard2.

That said, I wouldn’t personally pursue the upgrade path, re-index to a fresh collection please.

Best,
Erick

> On Feb 11, 2020, at 6:45 AM, Yogesh Chaudhari <Yo...@harbingergroup.com.INVALID> wrote:
> 
> Hi All,
>  
> Currently we are using Solr 5.2.1 on production server and want upgrade to Solr 7.7.2.  We are using solr 5.2.1 from last 5 years, we do have millions of documents on production server. We have Solr cloud with 2 shards and 3 replicas on production server. 
>  
> I have upgraded Solr 5.2.1 to Solr 6.6.6 , it is upgraded successfully on my local machine.
>  
> Now I am trying to upgrading Solr 6.6.6 to Solr 7.7.2. I have upgraded all 6 solr instances one at a time to Solr 7.7.2. I am getting below error. One shard (with 3 replicas) is upgraded successfully bu =t the another shard is giving an error (please refer below image).  Though one shard is upgraded, I can not do anything with that. I think issue is due to old indexes or documents.
>  
> 
>  
> o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: no servers hosting shard: shard2
>  
>                 at org.apache.solr.handler.component.HttpShardHandler.prepDistributed(HttpShardHandler.java:463)
>                 at org.apache.solr.handler.component.SearchHandler.getAndPrepShardHandler(SearchHandler.java:226)
>                 at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:267)
>                 at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)
>                 at org.apache.solr.core.SolrCore.execute(SolrCore.java:2551)
>                 at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711)
>                 at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516)
>                 at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:395)
>                 at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:341)
>                 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1602)
>                 at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
>                 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:1588)
>                 at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
>                 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
>                 at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
>                 at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
>                 at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1557)
>                 at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
>                 at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
>                 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
>                 at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)
>                 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:502)
> I am struggling from last few days to migrate solr 5.2.1 to Solr 7.7.1.
>  
> Can you please share your inputs or please assist me?
>  
> Thanks,
>  
> Yogesh Chaudhari