The field variant_count is stored and is not the target of a copyfield. <field name="variant_count" type="int" indexed="true" stored="true" required="true" multiValued="false"/>
However I did notice that we were setting the same coreNodeName on both the shards in core.properties. Removing this property fixed the issue and updates succeed. What role does this play in handling updates and why were other queries using the select handler not failing? Thanks Sesha On Sat, Sep 21, 2013 at 7:59 PM, Yonik Seeley <yo...@lucidworks.com> wrote: > I can't reproduce this. > I tried starting up a 2 shard cluster and then followed the example here: > http://yonik.com/solr/atomic-updates/ > > "book1" was on shard2 (port 7574) and everything still worked fine. > > > missing required field: variant_count > > Perhaps the problem is document specific... What can you say about > this variant_count field? > Is it stored? Is it the target of a copyField? > > > -Yonik > http://lucidworks.com > > > > > On Tue, Sep 17, 2013 at 12:56 PM, Sesha Sendhil Subramanian > <seshasend...@indix.com> wrote: > > curl http://localhost:8983/solr/search/update -H > > 'Content-type:application/json' -d ' > > [ > > { > > "id" : > > "c8cce27c1d8129d733a3df3de68dd675!c8cce27c1d8129d733a3df3de68dd675", > > "link_id_45454" : {"set":"abcdegff"} > > } > > ]' > > > > I have two collections search and meta. I want to do an update in the > > search collection. > > If i pick a document in same shard : localhost:8983, the update succeeds > > > > 15350327 [qtp386373885-19] INFO > > org.apache.solr.update.processor.LogUpdateProcessor ? [search] > > webapp=/solr path=/update params={} > > {add=[6cfcb56ca52b56ccb1377a7f0842e74d!6cfcb56ca52b56ccb1377a7f0842e74d > > (1446444025873694720)]} 0 5 > > > > If i pick a document on a different shard : localhost:7574, the update > fails > > > > 15438547 [qtp386373885-75] INFO > > org.apache.solr.update.processor.LogUpdateProcessor ? [search] > > webapp=/solr path=/update params={} {} 0 1 > > 15438548 [qtp386373885-75] ERROR org.apache.solr.core.SolrCore ? > > org.apache.solr.common.SolrException: > > [doc=c8cce27c1d8129d733a3df3de68dd675!c8cce27c1d8129d733a3df3de68dd675] > > missing required field: variant_count > > at > > > org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:189) > > at > > > org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:73) > > at > > > org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:210) > > at > > > org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:69) > > at > > > org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51) > > at > > > org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:556) > > at > > > org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:692) > > at > > > org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:435) > > at > > > org.apache.solr.update.processor.LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:100) > > at > > > org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.handleAdds(JsonLoader.java:392) > > at > > > org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.processUpdate(JsonLoader.java:117) > > at > > > org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.load(JsonLoader.java:101) > > at org.apache.solr.handler.loader.JsonLoader.load(JsonLoader.java:65) > > at > > > org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:92) > > at > > > org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:74) > > at > > > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) > > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1904) > > at > > > org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:659) > > at > > > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:362) > > at > > > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:158) > > at > > > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) > > at > > > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455) > > at > > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) > > at > > > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) > > at > > > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) > > at > > > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075) > > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384) > > at > > > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) > > at > > > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009) > > at > > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) > > at > > > org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) > > at > > > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) > > at > > > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) > > at org.eclipse.jetty.server.Server.handle(Server.java:368) > > at > > > org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) > > at > > > org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53) > > at > > > org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:953) > > at > > > org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1014) > > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861) > > at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) > > at > > > org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72) > > at > > > org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264) > > at > > > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) > > at > > > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) > > at java.lang.Thread.run(Thread.java:722) > > > > Sesha > > > > > > > > On Tue, Sep 17, 2013 at 8:24 PM, Yonik Seeley <yo...@lucidworks.com> > wrote: > > > >> On Tue, Sep 17, 2013 at 10:47 AM, Sesha Sendhil Subramanian > >> <seshasend...@indix.com> wrote: > >> > I am using solr 4.4 in solr cloud configuration. When i try to 'set' a > >> > field in a document using the update request handler, I get a 'missing > >> > required field' error. > >> > >> Can you show the exact error message you get, and the update you are > >> trying to send? > >> > >> -Yonik > >> http://lucidworks.com > >> >