s1monw commented on issue #1361: LUCENE-8118: Throw exception if DWPT grows 
beyond it's maximum ram limit
URL: https://github.com/apache/lucene-solr/pull/1361#issuecomment-601407553
 
 
   > 2) fixing exception handling in DW.updateDocuments to handle this 
exception gracefully (non-aborting).
   
   the problem in this method was that we need to flush the DWPT to disk even 
if we hit an non-aborting exception. Otherwise the next doc would hit the same 
exception or we would violate the assumption that we never receive a flush 
pending DWPT. 
   
   One thing that I keep thinking about is what happens if we index documents 
close to the limit and then the next batch of documents would exceed that 
limit. That would mean that we reject docs event though we could index them 
into a different DWPT. Should we at least try to index it again in a fresh DWPT 
unless the DWPT that rejected it was empty? I mean that would prevent the issue 
and should be straight forward to implement. I can work on this in a followup. 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to