You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Doron Cohen <cd...@gmail.com> on 2008/06/01 15:30:12 UTC

Re: IndexReader.reopen memory leak

Hi John,

IndexReader newInner=in.reopen();
>      if (in!=newInner)
>      {
>        in.close();
>        this.in=newInner;
>
>        // code to clean up my data
>        _cache.clear();
>        _indexData.load(this, true);
>        init(_fieldConfig);
>      }
>

Just to be sure on this, could you confirm the two appearances above:
- in
- this.in
refer to exactly the same variable?

Assuming they are, could you provide some more code:
- entire method containing the above code
- method reopen() of your FilteredIndexReader.
- method newReader()
- constructor of FilteredIndexReader if it is invoked from newReader()

Regards,
Doron