Skip to content

Conversation

@masseyke
Copy link
Member

In 8.0 the ability to have a positive "xpack.searchable.snapshot.shared_cache.size" on a non-frozen node
has been removed. This commit adds a deprecation info API check if a non-frozen node has a non-
negative "xpack.searchable.snapshot.shared_cache.size".
Relates #42404 #71013

@masseyke masseyke requested a review from jbaiera August 31, 2021 17:49
@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Aug 31, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

Copy link
Member

@jbaiera jbaiera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a small question about the deprecation itself

Setting<ByteSizeValue> cacheSizeSetting = Setting.byteSizeSetting(cacheSizeSettingKey, ByteSizeValue.ZERO);
if (cacheSizeSetting.exists(settings)) {
ByteSizeValue cacheSize = cacheSizeSetting.get(settings);
if (cacheSize.getBytes() > 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just double checking here because I know that -1 usually means "disabled": Is this expected to be 0 or negative, or should it be always negative?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@masseyke masseyke merged commit 783afbc into elastic:7.x Sep 3, 2021
@masseyke masseyke deleted the feature/deprecation-info-frozen-cache-leniency branch September 3, 2021 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue Team:Data Management Meta label for data/management team v7.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants