[jira] Created: (LUCENE-1214) Possible hidden exception on SegmentInfos commit

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (LUCENE-1214) Possible hidden exception on SegmentInfos commit

Parth (Jira)
Possible hidden exception on SegmentInfos commit
------------------------------------------------

                 Key: LUCENE-1214
                 URL: https://issues.apache.org/jira/browse/LUCENE-1214
             Project: Lucene - Java
          Issue Type: Bug
          Components: Index
    Affects Versions: 2.3.1
            Reporter: Mark Miller
            Priority: Trivial


I am not sure if this is that big of a deal, but I just ran into it and thought I might mention it.

SegmentInfos.commit removes the Segments File if it hits an exception. If it cannot remove the Segments file (because its not there or on Windows something has a hold of it), another Exception is thrown about not being able to delete the Segments file. Because of this, you lose the first exception, which might have useful info, including why the segments file might not be there to delete.

- Mark

--
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (LUCENE-1214) Possible hidden exception on SegmentInfos commit

Parth (Jira)

     [ https://issues.apache.org/jira/browse/LUCENE-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless reassigned LUCENE-1214:
------------------------------------------

    Assignee: Michael McCandless

> Possible hidden exception on SegmentInfos commit
> ------------------------------------------------
>
>                 Key: LUCENE-1214
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1214
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.3.1
>            Reporter: Mark Miller
>            Assignee: Michael McCandless
>            Priority: Trivial
>
> I am not sure if this is that big of a deal, but I just ran into it and thought I might mention it.
> SegmentInfos.commit removes the Segments File if it hits an exception. If it cannot remove the Segments file (because its not there or on Windows something has a hold of it), another Exception is thrown about not being able to delete the Segments file. Because of this, you lose the first exception, which might have useful info, including why the segments file might not be there to delete.
> - Mark

--
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (LUCENE-1214) Possible hidden exception on SegmentInfos commit

Parth (Jira)
In reply to this post by Parth (Jira)

    [ https://issues.apache.org/jira/browse/LUCENE-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12576970#action_12576970 ]

Michael McCandless commented on LUCENE-1214:
--------------------------------------------

Good catch Mark.  It seems like we should ignore any exception while trying to delete the partially written segments_N file, and throw the original exception.  I'll do that.

How did you hit these two exceptions?

> Possible hidden exception on SegmentInfos commit
> ------------------------------------------------
>
>                 Key: LUCENE-1214
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1214
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.3.1
>            Reporter: Mark Miller
>            Priority: Trivial
>
> I am not sure if this is that big of a deal, but I just ran into it and thought I might mention it.
> SegmentInfos.commit removes the Segments File if it hits an exception. If it cannot remove the Segments file (because its not there or on Windows something has a hold of it), another Exception is thrown about not being able to delete the Segments file. Because of this, you lose the first exception, which might have useful info, including why the segments file might not be there to delete.
> - Mark

--
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (LUCENE-1214) Possible hidden exception on SegmentInfos commit

Parth (Jira)
In reply to this post by Parth (Jira)

     [ https://issues.apache.org/jira/browse/LUCENE-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless updated LUCENE-1214:
---------------------------------------

    Attachment: LUCENE-1214.patch

Attached patch.  All tests pass.  I plan to commit in a day or so.

> Possible hidden exception on SegmentInfos commit
> ------------------------------------------------
>
>                 Key: LUCENE-1214
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1214
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.3.1
>            Reporter: Mark Miller
>            Assignee: Michael McCandless
>            Priority: Trivial
>         Attachments: LUCENE-1214.patch
>
>
> I am not sure if this is that big of a deal, but I just ran into it and thought I might mention it.
> SegmentInfos.commit removes the Segments File if it hits an exception. If it cannot remove the Segments file (because its not there or on Windows something has a hold of it), another Exception is thrown about not being able to delete the Segments file. Because of this, you lose the first exception, which might have useful info, including why the segments file might not be there to delete.
> - Mark

--
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (LUCENE-1214) Possible hidden exception on SegmentInfos commit

Parth (Jira)
In reply to this post by Parth (Jira)

    [ https://issues.apache.org/jira/browse/LUCENE-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577220#action_12577220 ]

Mark Miller commented on LUCENE-1214:
-------------------------------------

I am still trying to work that out...some craziness that started after I updated Lucene to trunk, but also made other fundamental changes, and windows vista may be haunting me too...

The gist of it is that Lucene is failing when it tries to create an index file (creates the directory fine). I don't think its Lucene related at the moment, but I havnt gotten to the bottom of it either.

Oddly, if I stop using the NoLockFactory (I manually manage a single Writer), things work...still digging though.

> Possible hidden exception on SegmentInfos commit
> ------------------------------------------------
>
>                 Key: LUCENE-1214
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1214
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.3.1
>            Reporter: Mark Miller
>            Assignee: Michael McCandless
>            Priority: Trivial
>         Attachments: LUCENE-1214.patch
>
>
> I am not sure if this is that big of a deal, but I just ran into it and thought I might mention it.
> SegmentInfos.commit removes the Segments File if it hits an exception. If it cannot remove the Segments file (because its not there or on Windows something has a hold of it), another Exception is thrown about not being able to delete the Segments file. Because of this, you lose the first exception, which might have useful info, including why the segments file might not be there to delete.
> - Mark

--
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (LUCENE-1214) Possible hidden exception on SegmentInfos commit

Parth (Jira)
In reply to this post by Parth (Jira)

     [ https://issues.apache.org/jira/browse/LUCENE-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless resolved LUCENE-1214.
----------------------------------------

    Resolution: Fixed

> Possible hidden exception on SegmentInfos commit
> ------------------------------------------------
>
>                 Key: LUCENE-1214
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1214
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.3.1
>            Reporter: Mark Miller
>            Assignee: Michael McCandless
>            Priority: Trivial
>         Attachments: LUCENE-1214.patch
>
>
> I am not sure if this is that big of a deal, but I just ran into it and thought I might mention it.
> SegmentInfos.commit removes the Segments File if it hits an exception. If it cannot remove the Segments file (because its not there or on Windows something has a hold of it), another Exception is thrown about not being able to delete the Segments file. Because of this, you lose the first exception, which might have useful info, including why the segments file might not be there to delete.
> - Mark

--
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: [hidden email]
For additional commands, e-mail: [hidden email]