lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: [jira] Assigned: (LUCENE-623) RAMDirectory.close() should have a comment about not releasing any resources
Date Thu, 06 Jul 2006 21:49:50 GMT

Interestingly enough, this patch triggers an NPE in one ofthe tests...

java.lang.NullPointerException at
org.apache.lucene.store.RAMDirectory$1.obtain(RAMDirectory.java:184) at
org.apache.lucene.store.Lock.obtain(Lock.java:51) at
org.apache.lucene.store.Lock$With.run(Lock.java:98) at
org.apache.lucene.index.IndexReader.open(IndexReader.java:141) at
org.apache.lucene.index.IndexReader.open(IndexReader.java:136) at
org.apache.lucene.index.TestIndexWriterMerging.verifyIndex(TestIndexWriterMerging.java:74)
at
org.apache.lucene.index.TestIndexWriterMerging.testLucene(TestIndexWriterMerging.java:66)

...i believe the test itself is invalid, but i want to think it through
carfully before changing it.



On Thu, 6 Jul 2006, Hoss Man (JIRA) wrote:

: Date: Thu, 6 Jul 2006 21:22:30 +0000 (GMT+00:00)
: From: "Hoss Man (JIRA)" <jira@apache.org>
: Reply-To: java-dev@lucene.apache.org
: To: java-dev@lucene.apache.org
: Subject: [jira] Assigned: (LUCENE-623) RAMDirectory.close() should have a
:     comment about not releasing any resources
:
:      [ http://issues.apache.org/jira/browse/LUCENE-623?page=all ]
:
: Hoss Man reassigned LUCENE-623:
: -------------------------------
:
:     Assign To: Hoss Man
:
: > RAMDirectory.close() should have a comment about not releasing any resources
: > ----------------------------------------------------------------------------
: >
: >          Key: LUCENE-623
: >          URL: http://issues.apache.org/jira/browse/LUCENE-623
: >      Project: Lucene - Java
: >         Type: Improvement
:
: >   Components: Store
: >     Versions: 1.9
: >     Reporter: Heng Mei
: >     Assignee: Hoss Man
: >     Priority: Minor
: >  Attachments: ramdirectory.diff
: >
: > I wrongly assumed that calling RAMDirectory.close() would free up the memory occupied
by the RAMDirectory.
: > It might be helpful to add a javadoc comment that warns users that RAMDirectory.close()
is a no-op, since it might be a common assumption that close() would release resources.
:
: --
: This message is automatically generated by JIRA.
: -
: If you think it was sent incorrectly contact one of the administrators:
:    http://issues.apache.org/jira/secure/Administrators.jspa
: -
: For more information on JIRA, see:
:    http://www.atlassian.com/software/jira
:
:
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
: For additional commands, e-mail: java-dev-help@lucene.apache.org
:



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message