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

Fix issue setting 'enable_metric => false' on a plugin #10538

Closed
wants to merge 1 commit into from

Conversation

robbavey
Copy link
Member

This commit fixes a ClassCastException which happens when
a plugin has the enable_metric setting set to false - a
NullMetricExt is assumed, but that is only created when
'metric.collect' is set to 'false' in the Logstash configuration,
not when an individual plugin disables its metrics.

This commit fixes a ClassCastException which happens when
 a plugin has the `enable_metric` setting set to false - a
 NullMetricExt is assumed, but that is only created when
 'metric.collect' is set to 'false' in the Logstash configuration,
 not when an individual plugin disables its metrics.
@elasticsearch-bot elasticsearch-bot self-assigned this Mar 12, 2019
@jsvd jsvd requested a review from danhermann March 12, 2019 21:51
Copy link
Member

@jsvd jsvd left a comment

Choose a reason for hiding this comment

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

LGTM tested manually also and confirmed PR fixes the issue

@elasticsearch-bot
Copy link

João Duarte merged this into the following branches!

Branch Commits
master fb5eba8
7.x 2ec0001
7.0 f0006a0

elasticsearch-bot pushed a commit that referenced this pull request Mar 13, 2019
This commit fixes a ClassCastException which happens when
 a plugin has the `enable_metric` setting set to false - a
 NullMetricExt is assumed, but that is only created when
 'metric.collect' is set to 'false' in the Logstash configuration,
 not when an individual plugin disables its metrics.

Fixes #10538
elasticsearch-bot pushed a commit that referenced this pull request Mar 13, 2019
This commit fixes a ClassCastException which happens when
 a plugin has the `enable_metric` setting set to false - a
 NullMetricExt is assumed, but that is only created when
 'metric.collect' is set to 'false' in the Logstash configuration,
 not when an individual plugin disables its metrics.

Fixes #10538
@jsvd
Copy link
Member

jsvd commented Mar 13, 2019

@robbavey can you create a backport of this to 6.7 since it doesn't merge cleanly?

robbavey added a commit to robbavey/logstash that referenced this pull request Mar 13, 2019
This commit fixes a ClassCastException which happens when
 a plugin has the `enable_metric` setting set to false - a
 NullMetricExt is assumed, but that is only created when
 'metric.collect' is set to 'false' in the Logstash configuration,
 not when an individual plugin disables its metrics.

Fixes elastic#10538
robbavey added a commit to robbavey/logstash that referenced this pull request Mar 13, 2019
This commit fixes a ClassCastException which happens when
 a plugin has the `enable_metric` setting set to false - a
 NullMetricExt is assumed, but that is only created when
 'metric.collect' is set to 'false' in the Logstash configuration,
 not when an individual plugin disables its metrics.

Fixes elastic#10538
robbavey added a commit to robbavey/logstash that referenced this pull request Mar 13, 2019
This commit fixes a ClassCastException which happens when
 a plugin has the `enable_metric` setting set to false - a
 NullMetricExt is assumed, but that is only created when
 'metric.collect' is set to 'false' in the Logstash configuration,
 not when an individual plugin disables its metrics.

Fixes elastic#10538
elasticsearch-bot pushed a commit that referenced this pull request Mar 13, 2019
This commit fixes a ClassCastException which happens when
 a plugin has the `enable_metric` setting set to false - a
 NullMetricExt is assumed, but that is only created when
 'metric.collect' is set to 'false' in the Logstash configuration,
 not when an individual plugin disables its metrics.

Fixes #10538

Fixes #10553
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants