: Let me add some background. A user triggers an operation which under the 
: hood needs to update a single field. Atomic update fails with a message 
: that one of the mandatory fields is missing (which is strange by 
: itself). When I query Solr for the exact document (fq with the document 
: id) I sometimes get the expected single result and sometimes zero. Those 
: queries are done sometimes couple of days later so auto commits 
: necessarily have been performed.

I suspect waht you are seeing is that the update succeeds on a leader, but 
for some reason (i'm not really understanding your description ofthe 
atomic udpate failure) it fals on areplica -- leaving them in an 
inconsistent state.  Restarting all the nodes forces the out of sync 
replica to recover.

If i'm correct, then when you see these inconsistent results, you should 
be able to query each individual *core* that is a replica of the shard 
this document belongs in, using a "distrib=false" request param, and see 
that it exists on the "leader" replica, but not on one/some of the other 
replicas.

Understanding why/how you got into this situation though would require 
understand what exactly you mean by "a message that one of the mandatory fields 
is missing"

can you show us some details?  solrconfig/schema, example documents, 
example updates, log messages from the various nodes when these updates 
"fail", etc... ?

https://cwiki.apache.org/confluence/display/SOLR/UsingMailingLists

: One more thing that might be important - we're using nested schema, and 
: we recently encountered several issues that make me think that this 
: combination - nested and atomic updates (of parent documents) - is the 
: root cause.

it's very possible that there are some bugs related to atomic updates and 
neste documents -- the code for dealing with that combination is 
relatively new, and making it work correctly requires special fields in 
the schema -- on top of the normal atomic update rules.  The documentation 
on this was heavily updated in the 8.7 ref-guide...

https://lucene.apache.org/solr/guide/8_7/indexing-nested-documents.html
https://lucene.apache.org/solr/guide/8_7/updating-parts-of-documents.html#updating-child-documents



-Hoss
http://www.lucidworks.com/

Reply via email to