vigyasharma commented on pull request #633:
URL: https://github.com/apache/lucene/pull/633#issuecomment-1073177695


   Thanks @mikemccand . I figured that I had changed the exception signature 
for addIndexes() in my last revision. I was throwing a blanket 
MergePolicyException when addIndexes failed to merge all the readers in; and a 
lot of these tests were designed to look for specific exceptions that would've 
earlier gotten thrown from the SegmentMerger code  running in main addIndexes 
thread.. This was causing the randomly invoked tests to fail.
   
   I changed that, to `rethrow` the exceptions seen by any failed background 
OneMerges, and that appeased the gradle gods and builds began to pass again. 
   
   I think this is better, because now the API throws the actual error seen by 
a thread doing the merge, instead of some blanket failure message. In general, 
I have to say, I'm fascinated by the breadth of test cases around this API, and 
the code framework present to add more tests.


-- 
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.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



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

Reply via email to