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

ResourceWatcher: Rename settings to prevent watcher clash #11359

Merged
merged 1 commit into from
Jun 9, 2015

Conversation

spinscale
Copy link
Contributor

The ResourceWatcher used settings prefixed watcher., which
potentially could clash with the watcher plugin.

In order to prevent confusion, the settings have been renamed to
resource.reload prefixes.

This also uses the deprecation logging infrastructure introduced
in #11033 to log deprecated settings and their alternative at
startup.

Closes #11175

highMonitor = new ResourceMonitor(interval, Frequency.HIGH);

logDeprecatedSetting("watcher.enabled", "resource.reload.enabled");
Copy link
Member

Choose a reason for hiding this comment

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

Is this really a deprecation, or should it be an error? Deprecation to me implies the old settings still work, but it seems like above only the new setting works?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right, deprecated should mean, that the setting still works. I added a logRemovedSetting() to log that this setting has been removed. Given the minority of this setting being changed, it is safe to be removed.

However after talking with clint about this, we need to decide on each case, if we want to support features/settings and log their deprecation or their removal.

@spinscale spinscale force-pushed the 1505-watcher-interval-rename branch from 8552121 to f616571 Compare May 27, 2015 12:10
@javanna
Copy link
Member

javanna commented Jun 8, 2015

LGTM

@clintongormley clintongormley added the :Core/Infra/Settings Settings infrastructure and APIs label Jun 8, 2015
@spinscale spinscale force-pushed the 1505-watcher-interval-rename branch from f616571 to 664986b Compare June 9, 2015 08:01
The ResourceWatcher used settings prefixed `watcher.`, which
potentially could clash with the watcher plugin.

In order to prevent confusion, the settings have been renamed to
`resource.reload` prefixes.

This also uses the deprecation logging infrastructure introduced
in elastic#11033 to log deprecated settings and their alternative at
startup.

Closes elastic#11175
@spinscale spinscale force-pushed the 1505-watcher-interval-rename branch from 664986b to 3bda78e Compare June 9, 2015 08:03
@spinscale spinscale merged commit 3bda78e into elastic:master Jun 9, 2015
@kevinkluge kevinkluge removed the review label Jun 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename watcher.interval
5 participants