Skip to content

Automatically adjust com.metamx.metrics Monitor class references#5412

Merged
jon-wei merged 2 commits intoapache:masterfrom
jon-wei:monitor_tweak
Feb 22, 2018
Merged

Automatically adjust com.metamx.metrics Monitor class references#5412
jon-wei merged 2 commits intoapache:masterfrom
jon-wei:monitor_tweak

Conversation

@jon-wei
Copy link
Copy Markdown
Contributor

@jon-wei jon-wei commented Feb 22, 2018

This PR automatically converts Monitor class names with com.metamx.metrics to use io.druid.java.util.metrics instead (See #5289).

This will make 0.12.0 upgrades easier for anyone who was using a Monitor from the metamx java-util package.

Adding this to 0.12.0 milestone as it helps with configuration backwards compatibility.

@jon-wei jon-wei added this to the 0.12.0 milestone Feb 22, 2018
}
try {
for (String monitorName : monitorNames) {
String effectiveMonitorName = monitorName.replace(OLD_METAMX_PACKAGE_NAME, NEW_DRUID_PACKAGE_NAME);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How about logging a warning to use the new name instead of the old one?

Copy link
Copy Markdown
Member

@nishantmonu51 nishantmonu51 left a comment

Choose a reason for hiding this comment

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

👍 after travis.

@jon-wei jon-wei merged commit e9977ce into apache:master Feb 22, 2018
jon-wei added a commit to jon-wei/druid that referenced this pull request Feb 22, 2018
…che#5412)

* Automatically adjust com.metamx.metrics monitor class references

* Log warning for old class names
jon-wei added a commit that referenced this pull request Feb 23, 2018
…) (#5417)

* Automatically adjust com.metamx.metrics monitor class references

* Log warning for old class names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants