lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] [Commented] (LUCENE-6217) IndexWriter should make it clear when tragedy strikes
Date Wed, 04 Feb 2015 16:49:34 GMT


Michael McCandless commented on LUCENE-6217:

I'll add a getter...

> IndexWriter should make it clear when tragedy strikes
> -----------------------------------------------------
>                 Key: LUCENE-6217
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
> If you hit an exception at a "bad time" e.g. when writing files for a newly flushed segment,
IndexWriter declares it a tragedy and secretly closes itself as a side effect of the exception.
> Subsequent operations will throw an ACE with the exception that caused the tragedy as
its cause.
> This requires messy code, if you want to know when this happened to you, since the first
exception doesn't make it clear that it was "tragic".
> I think we should make it easier to know when this happens?
> Maybe we could instead throw a new exception (IWClosedByTragedy or something), or maybe
we add a getter (.getTragicException) to IW?

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message