the method is below:
public synchronized void clear() {
this.cache.clear();
this.mostRecentlyUsedQueries.clear();
this.onClear();
}
my question is: why not clear uniqueQueries?
since I will make IndicesQueryCache dynamicly configurable I have to clear the previous one.
but if LRUQueryCache's clear method not clear uniqueQueries, it could be memory leak.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.