lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doron Cohen" <cdor...@gmail.com>
Subject Re: IndexReader.reopen memory leak
Date Sun, 01 Jun 2008 13:30:12 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message