You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Document the state by adding a label to the FLIP page with one of "discussion", "accepted", "released", "rejected".

Discussion threadhere (<- link to https://lists.apache.org/list.html?dev@flink.apache.org)
Vote threadhere (<- link to https://lists.apache.org/list.html?dev@flink.apache.org)
JIRAhere (<- link to https://issues.apache.org/jira/browse/FLINK-XXXX)
Release<Flink Version>

Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).

Motivation

MetricGroup#getAllVariables returns all variables associated with the metric, for example:

<job_id> = abcde
<subtask_index> = 0

The keys are surrounded by brackets for no particular reason.

In virtually every use-case for this method the user is stripping the brackets from keys, as done in:

Public Interfaces

MetricGroup#getAllVariables

Proposed Changes

Change the method spec and implementation to remove the brackets around keys.

For migration purposes it may make sense to add a new method with the new behavior (getVariables()) and deprecate the old method.

Compatibility, Deprecation, and Migration Plan

  • What impact (if any) will there be on existing users?
  • Existing users need to adjust their code to no longer strip the first and last character (e.g., what the datadog reporter does). Filter-based approaches will not be impacted.
  • If we are changing behavior how will we phase out the older behavior?
  • We don't have a well-defined process for breaking behavioral changes. We could consider adding a new method with a different name.
  • No labels