Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reclaim memory from fielddata synchronously when an explicit clear is performed. #11697

Merged
merged 1 commit into from Jun 16, 2015

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented Jun 16, 2015

The cache we are using for fielddata reclaims memory lazily/asynchronously. While this
helps with throughput this is an issue when a clear operation is issued manually since
memory is not reclaimed immediately. Since our clear methods already perform in linear
time anyway, this commit changes the fielddata cache to reclaim memory synchronously
when a clear command is issued manually. However, it remains lazy in case cache entries
are invalidated because segments or readers are closed, which is important since such
events happen all the time.

Close #11695

… performed.

The cache we are using for fielddata reclaims memory lazily/asynchronously. While this
helps with throughput this is an issue when a clear operation is issued manually since
memory is not reclaimed immediately. Since our clear methods already perform in linear
time anyway, this commit changes the fielddata cache to reclaim memory synchronously
when a clear command is issued manually. However, it remains lazy in case cache entries
are invalidated because segments or readers are closed, which is important since such
events happen all the time.

Close elastic#11695
@dakrone
Copy link
Member

dakrone commented Jun 16, 2015

LGTM

jpountz added a commit that referenced this pull request Jun 16, 2015
Reclaim memory from fielddata synchronously when an explicit clear is performed.
@jpountz jpountz merged commit 891689e into elastic:master Jun 16, 2015
@kevinkluge kevinkluge removed the review label Jun 16, 2015
@clintongormley clintongormley added :Search/Search Search-related issues that do not fall into other categories and removed :Fielddata labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search/Search Search-related issues that do not fall into other categories v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI failure] org.elasticsearch.indices.stats.IndexStatsTests.testFieldDataStats
4 participants