[ https://issues.apache.org/jira/browse/LUCENE-2818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972763#action_12972763 ]
Michael McCandless commented on LUCENE-2818: -------------------------------------------- +1 I think this'd be a good simplification of IW/IR code. I don't mind that IO would know how to delete the partial file it had created; that seems fair. So eg CompoundFileWriter would abort its output file on hitting any exception. I think we can make a default impl that simply closes & suppresses exceptions? (We can't .deleteFile since an abstract IO doesn't know its Dir). Our concrete impls can override w/ versions that do delete the file... > abort() method for IndexOutput > ------------------------------ > > Key: LUCENE-2818 > URL: https://issues.apache.org/jira/browse/LUCENE-2818 > Project: Lucene - Java > Issue Type: Improvement > Reporter: Earwin Burrfoot > > I'd like to see abort() method on IndexOutput that silently (no exceptions) > closes IO and then does silent papaDir.deleteFile(this.fileName()). > This will simplify a bunch of error recovery code for IndexWriter and > friends, but constitutes an API backcompat break. > What do you think? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org