[jira] Created: (LUCENE-2045) FNFE hit when creating an empty index and infoStream is on

View: New views
6 Messages — Rating Filter:   Alert me  

[jira] Created: (LUCENE-2045) FNFE hit when creating an empty index and infoStream is on

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

FNFE hit when creating an empty index and infoStream is on
----------------------------------------------------------

                 Key: LUCENE-2045
                 URL: https://issues.apache.org/jira/browse/LUCENE-2045
             Project: Lucene - Java
          Issue Type: Bug
          Components: Index
            Reporter: Michael McCandless
            Assignee: Michael McCandless
            Priority: Minor
             Fix For: 3.0


Shai just reported this on the dev list.  Simple test:
{code}
Directory dir = new RAMDirectory();
IndexWriter writer = new IndexWriter(dir, new SimpleAnalyzer(), MaxFieldLength.UNLIMITED);
writer.setInfoStream(System.out);
writer.addDocument(new Document());
writer.commit();
writer.close();
{code}

hits this:

{code}
Exception in thread "main" java.io.FileNotFoundException: _0.prx
    at org.apache.lucene.store.RAMDirectory.fileLength(RAMDirectory.java:149)
    at org.apache.lucene.index.DocumentsWriter.segmentSize(DocumentsWriter.java:1150)
    at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:587)
    at org.apache.lucene.index.IndexWriter.doFlushInternal(IndexWriter.java:3572)
    at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3483)
    at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3474)
    at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1940)
    at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1894)
{code}

Turns out it's just silly -- this is actually an issue I've already fixed on the flex (LUCENE-1458) branch.  DocumentsWriter has its own method to enumerate the flushed files and compute their size, but really it shouldn't do that -- it should use SegmentInfo's method, instead.

--
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: java-dev-unsubscribe@...
For additional commands, e-mail: java-dev-help@...


[jira] Resolved: (LUCENE-2045) FNFE hit when creating an empty index and infoStream is on

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Michael McCandless resolved LUCENE-2045.
----------------------------------------

    Resolution: Fixed

Thanks Shai!

> FNFE hit when creating an empty index and infoStream is on
> ----------------------------------------------------------
>
>                 Key: LUCENE-2045
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2045
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 3.0
>
>
> Shai just reported this on the dev list.  Simple test:
> {code}
> Directory dir = new RAMDirectory();
> IndexWriter writer = new IndexWriter(dir, new SimpleAnalyzer(), MaxFieldLength.UNLIMITED);
> writer.setInfoStream(System.out);
> writer.addDocument(new Document());
> writer.commit();
> writer.close();
> {code}
> hits this:
> {code}
> Exception in thread "main" java.io.FileNotFoundException: _0.prx
>     at org.apache.lucene.store.RAMDirectory.fileLength(RAMDirectory.java:149)
>     at org.apache.lucene.index.DocumentsWriter.segmentSize(DocumentsWriter.java:1150)
>     at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:587)
>     at org.apache.lucene.index.IndexWriter.doFlushInternal(IndexWriter.java:3572)
>     at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3483)
>     at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3474)
>     at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1940)
>     at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1894)
> {code}
> Turns out it's just silly -- this is actually an issue I've already fixed on the flex (LUCENE-1458) branch.  DocumentsWriter has its own method to enumerate the flushed files and compute their size, but really it shouldn't do that -- it should use SegmentInfo's method, instead.

--
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: java-dev-unsubscribe@...
For additional commands, e-mail: java-dev-help@...


[jira] Reopened: (LUCENE-2045) FNFE hit when creating an empty index and infoStream is on

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Michael McCandless reopened LUCENE-2045:
----------------------------------------


Reopening for possible future 2.9.2 backport.

> FNFE hit when creating an empty index and infoStream is on
> ----------------------------------------------------------
>
>                 Key: LUCENE-2045
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2045
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 3.0
>
>
> Shai just reported this on the dev list.  Simple test:
> {code}
> Directory dir = new RAMDirectory();
> IndexWriter writer = new IndexWriter(dir, new SimpleAnalyzer(), MaxFieldLength.UNLIMITED);
> writer.setInfoStream(System.out);
> writer.addDocument(new Document());
> writer.commit();
> writer.close();
> {code}
> hits this:
> {code}
> Exception in thread "main" java.io.FileNotFoundException: _0.prx
>     at org.apache.lucene.store.RAMDirectory.fileLength(RAMDirectory.java:149)
>     at org.apache.lucene.index.DocumentsWriter.segmentSize(DocumentsWriter.java:1150)
>     at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:587)
>     at org.apache.lucene.index.IndexWriter.doFlushInternal(IndexWriter.java:3572)
>     at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3483)
>     at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3474)
>     at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1940)
>     at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1894)
> {code}
> Turns out it's just silly -- this is actually an issue I've already fixed on the flex (LUCENE-1458) branch.  DocumentsWriter has its own method to enumerate the flushed files and compute their size, but really it shouldn't do that -- it should use SegmentInfo's method, instead.

--
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: java-dev-unsubscribe@...
For additional commands, e-mail: java-dev-help@...


[jira] Updated: (LUCENE-2045) FNFE hit when creating an empty index and infoStream is on

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Michael McCandless updated LUCENE-2045:
---------------------------------------

    Fix Version/s: 2.9.2

> FNFE hit when creating an empty index and infoStream is on
> ----------------------------------------------------------
>
>                 Key: LUCENE-2045
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2045
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 2.9.2, 3.0
>
>
> Shai just reported this on the dev list.  Simple test:
> {code}
> Directory dir = new RAMDirectory();
> IndexWriter writer = new IndexWriter(dir, new SimpleAnalyzer(), MaxFieldLength.UNLIMITED);
> writer.setInfoStream(System.out);
> writer.addDocument(new Document());
> writer.commit();
> writer.close();
> {code}
> hits this:
> {code}
> Exception in thread "main" java.io.FileNotFoundException: _0.prx
>     at org.apache.lucene.store.RAMDirectory.fileLength(RAMDirectory.java:149)
>     at org.apache.lucene.index.DocumentsWriter.segmentSize(DocumentsWriter.java:1150)
>     at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:587)
>     at org.apache.lucene.index.IndexWriter.doFlushInternal(IndexWriter.java:3572)
>     at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3483)
>     at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3474)
>     at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1940)
>     at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1894)
> {code}
> Turns out it's just silly -- this is actually an issue I've already fixed on the flex (LUCENE-1458) branch.  DocumentsWriter has its own method to enumerate the flushed files and compute their size, but really it shouldn't do that -- it should use SegmentInfo's method, instead.

--
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: java-dev-unsubscribe@...
For additional commands, e-mail: java-dev-help@...


[jira] Resolved: (LUCENE-2045) FNFE hit when creating an empty index and infoStream is on

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Uwe Schindler resolved LUCENE-2045.
-----------------------------------

    Resolution: Fixed

To get rid of this issue (marked as fix for 3.0) -- merge this to 2.9 in revision: 834829

> FNFE hit when creating an empty index and infoStream is on
> ----------------------------------------------------------
>
>                 Key: LUCENE-2045
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2045
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 2.9.2, 3.0
>
>
> Shai just reported this on the dev list.  Simple test:
> {code}
> Directory dir = new RAMDirectory();
> IndexWriter writer = new IndexWriter(dir, new SimpleAnalyzer(), MaxFieldLength.UNLIMITED);
> writer.setInfoStream(System.out);
> writer.addDocument(new Document());
> writer.commit();
> writer.close();
> {code}
> hits this:
> {code}
> Exception in thread "main" java.io.FileNotFoundException: _0.prx
>     at org.apache.lucene.store.RAMDirectory.fileLength(RAMDirectory.java:149)
>     at org.apache.lucene.index.DocumentsWriter.segmentSize(DocumentsWriter.java:1150)
>     at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:587)
>     at org.apache.lucene.index.IndexWriter.doFlushInternal(IndexWriter.java:3572)
>     at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3483)
>     at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3474)
>     at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1940)
>     at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1894)
> {code}
> Turns out it's just silly -- this is actually an issue I've already fixed on the flex (LUCENE-1458) branch.  DocumentsWriter has its own method to enumerate the flushed files and compute their size, but really it shouldn't do that -- it should use SegmentInfo's method, instead.

--
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: java-dev-unsubscribe@...
For additional commands, e-mail: java-dev-help@...


[jira] Commented: (LUCENE-2045) FNFE hit when creating an empty index and infoStream is on

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Michael McCandless commented on LUCENE-2045:
--------------------------------------------

Thanks Uwe!

> FNFE hit when creating an empty index and infoStream is on
> ----------------------------------------------------------
>
>                 Key: LUCENE-2045
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2045
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 2.9.2, 3.0
>
>
> Shai just reported this on the dev list.  Simple test:
> {code}
> Directory dir = new RAMDirectory();
> IndexWriter writer = new IndexWriter(dir, new SimpleAnalyzer(), MaxFieldLength.UNLIMITED);
> writer.setInfoStream(System.out);
> writer.addDocument(new Document());
> writer.commit();
> writer.close();
> {code}
> hits this:
> {code}
> Exception in thread "main" java.io.FileNotFoundException: _0.prx
>     at org.apache.lucene.store.RAMDirectory.fileLength(RAMDirectory.java:149)
>     at org.apache.lucene.index.DocumentsWriter.segmentSize(DocumentsWriter.java:1150)
>     at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:587)
>     at org.apache.lucene.index.IndexWriter.doFlushInternal(IndexWriter.java:3572)
>     at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3483)
>     at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3474)
>     at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1940)
>     at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1894)
> {code}
> Turns out it's just silly -- this is actually an issue I've already fixed on the flex (LUCENE-1458) branch.  DocumentsWriter has its own method to enumerate the flushed files and compute their size, but really it shouldn't do that -- it should use SegmentInfo's method, instead.

--
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: java-dev-unsubscribe@...
For additional commands, e-mail: java-dev-help@...