Skip to content

Adding node deprecation info API check for frozen cache setting#77085

Merged
masseyke merged 2 commits intoelastic:7.xfrom
masseyke:feature/deprecation-info-frozen-cache-leniency
Sep 3, 2021
Merged

Adding node deprecation info API check for frozen cache setting#77085
masseyke merged 2 commits intoelastic:7.xfrom
masseyke:feature/deprecation-info-frozen-cache-leniency

Conversation

@masseyke
Copy link
Copy Markdown
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 (obsolete) DO NOT USE. This team no longer exists. label Aug 31, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 (obsolete) DO NOT USE. This team no longer exists. v7.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants