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][fn] bounds check for metrics family #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

flowchartsman
Copy link
Owner

Fixes apache#20020

Modifications

check for len() == 0 before iterating, otherwise return empty map.

Verifying this change

  • Make sure that the change passes the CI checks.

This change added tests and can be verified as follows:

  • *New test exercises failure condition (panics without fix), and tests instance communication besides. Also adds a helper for similar tests, should they need it.

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@flowchartsman flowchartsman changed the title Fix 20020 [fix][fn] bounds check for metrics family Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant