You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alan Boo (JIRA)" <ji...@apache.org> on 2007/12/06 08:24:43 UTC
[jira] Created: (LUCENE-1082) IndexReader.lastModified - always
return null
IndexReader.lastModified - always return null
---------------------------------------------
Key: LUCENE-1082
URL: https://issues.apache.org/jira/browse/LUCENE-1082
Project: Lucene - Java
Issue Type: Bug
Components: Index
Affects Versions: 2.3
Environment: Windows variants.
Reporter: Alan Boo
IndexReader.lastModified(String dir) or its variants always return null on 2.3, perhaps something to do with SegmentInfos's read().
--
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@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-1082) IndexReader.lastModified - always
return null
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549119 ]
Michael McCandless commented on LUCENE-1082:
--------------------------------------------
OK I see this issue. I'll fix it. Thanks for reporting Alan!
> IndexReader.lastModified - always return null
> ---------------------------------------------
>
> Key: LUCENE-1082
> URL: https://issues.apache.org/jira/browse/LUCENE-1082
> Project: Lucene - Java
> Issue Type: Bug
> Components: Index
> Affects Versions: 2.3
> Environment: Windows variants.
> Reporter: Alan Boo
>
> IndexReader.lastModified(String dir) or its variants always return null on 2.3, perhaps something to do with SegmentInfos's read().
--
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@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Resolved: (LUCENE-1082) IndexReader.lastModified - throws
NPE
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless resolved LUCENE-1082.
----------------------------------------
Resolution: Fixed
Fix Version/s: 2.3
I just committed this. Thanks Alan!
> IndexReader.lastModified - throws NPE
> -------------------------------------
>
> Key: LUCENE-1082
> URL: https://issues.apache.org/jira/browse/LUCENE-1082
> Project: Lucene - Java
> Issue Type: Bug
> Components: Index
> Affects Versions: 2.3
> Environment: Windows variants.
> Reporter: Alan Boo
> Assignee: Michael McCandless
> Fix For: 2.3
>
> Attachments: LUCENE-1082.patch
>
>
> IndexReader.lastModified(String dir) or its variants always return NPE on 2.3, perhaps something to do with SegmentInfo.
--
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@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-1082) IndexReader.lastModified - always
return null
Posted by "Alan Boo (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549116 ]
Alan Boo commented on LUCENE-1082:
----------------------------------
by the way. here is the stack trace.
java.lang.NullPointerException
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:534)
at org.apache.lucene.index.IndexReader.lastModified(IndexReader.java:286)
at org.apache.lucene.index.IndexReader.lastModified(IndexReader.java:275)
at com.alanboo.lucene.test.AbstractCollection.getDateIndexedAsString(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:589)
> IndexReader.lastModified - always return null
> ---------------------------------------------
>
> Key: LUCENE-1082
> URL: https://issues.apache.org/jira/browse/LUCENE-1082
> Project: Lucene - Java
> Issue Type: Bug
> Components: Index
> Affects Versions: 2.3
> Environment: Windows variants.
> Reporter: Alan Boo
>
> IndexReader.lastModified(String dir) or its variants always return null on 2.3, perhaps something to do with SegmentInfos's read().
--
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@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Updated: (LUCENE-1082) IndexReader.lastModified - throws NPE
Posted by "Alan Boo (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alan Boo updated LUCENE-1082:
-----------------------------
Description: IndexReader.lastModified(String dir) or its variants always return NPE on 2.3, perhaps something to do with SegmentInfo. (was: IndexReader.lastModified(String dir) or its variants always return null on 2.3, perhaps something to do with SegmentInfos's read().)
Summary: IndexReader.lastModified - throws NPE (was: IndexReader.lastModified - always return null)
> IndexReader.lastModified - throws NPE
> -------------------------------------
>
> Key: LUCENE-1082
> URL: https://issues.apache.org/jira/browse/LUCENE-1082
> Project: Lucene - Java
> Issue Type: Bug
> Components: Index
> Affects Versions: 2.3
> Environment: Windows variants.
> Reporter: Alan Boo
> Assignee: Michael McCandless
>
> IndexReader.lastModified(String dir) or its variants always return NPE on 2.3, perhaps something to do with SegmentInfo.
--
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@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-1082) IndexReader.lastModified - always
return null
Posted by "Alan Boo (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549111 ]
Alan Boo commented on LUCENE-1082:
----------------------------------
sorry, i mean i get a npe when i called IndexReader.lastModified, it's was working fine in lucene 2.1 and below.
> IndexReader.lastModified - always return null
> ---------------------------------------------
>
> Key: LUCENE-1082
> URL: https://issues.apache.org/jira/browse/LUCENE-1082
> Project: Lucene - Java
> Issue Type: Bug
> Components: Index
> Affects Versions: 2.3
> Environment: Windows variants.
> Reporter: Alan Boo
>
> IndexReader.lastModified(String dir) or its variants always return null on 2.3, perhaps something to do with SegmentInfos's read().
--
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@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Assigned: (LUCENE-1082) IndexReader.lastModified - always
return null
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless reassigned LUCENE-1082:
------------------------------------------
Assignee: Michael McCandless
> IndexReader.lastModified - always return null
> ---------------------------------------------
>
> Key: LUCENE-1082
> URL: https://issues.apache.org/jira/browse/LUCENE-1082
> Project: Lucene - Java
> Issue Type: Bug
> Components: Index
> Affects Versions: 2.3
> Environment: Windows variants.
> Reporter: Alan Boo
> Assignee: Michael McCandless
>
> IndexReader.lastModified(String dir) or its variants always return null on 2.3, perhaps something to do with SegmentInfos's read().
--
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@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Updated: (LUCENE-1082) IndexReader.lastModified - throws NPE
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless updated LUCENE-1082:
---------------------------------------
Attachment: LUCENE-1082.patch
Attached patch. I will commit soon.
This issue was caused by LUCENE-1011, so indeed only appeared in 2.3.
> IndexReader.lastModified - throws NPE
> -------------------------------------
>
> Key: LUCENE-1082
> URL: https://issues.apache.org/jira/browse/LUCENE-1082
> Project: Lucene - Java
> Issue Type: Bug
> Components: Index
> Affects Versions: 2.3
> Environment: Windows variants.
> Reporter: Alan Boo
> Assignee: Michael McCandless
> Attachments: LUCENE-1082.patch
>
>
> IndexReader.lastModified(String dir) or its variants always return NPE on 2.3, perhaps something to do with SegmentInfo.
--
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@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-1082) IndexReader.lastModified - always
return null
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549107 ]
Michael McCandless commented on LUCENE-1082:
--------------------------------------------
Could you provide more details here?
That method returns a long so it can't return null. Do you mean it's returning 0?
TestIndexReader has a case that tests this method and it seems to be working from what I can tell.
> IndexReader.lastModified - always return null
> ---------------------------------------------
>
> Key: LUCENE-1082
> URL: https://issues.apache.org/jira/browse/LUCENE-1082
> Project: Lucene - Java
> Issue Type: Bug
> Components: Index
> Affects Versions: 2.3
> Environment: Windows variants.
> Reporter: Alan Boo
>
> IndexReader.lastModified(String dir) or its variants always return null on 2.3, perhaps something to do with SegmentInfos's read().
--
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@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org