Skip to content

Conversation

@EdColeman
Copy link
Contributor

@EdColeman EdColeman commented May 4, 2024

Prevent NPE with DistributionSummary in ThriftMetrics if metrics are not initialized.

  • Fixes failures in LateLastContactIT by initializing the metrics
  • Adds a general guard by providing a default, no-op distribution summary.

The initialization of the metrics the ZombieTServber was already made in main as part of #4500.

Copy link
Member

@kevinrr888 kevinrr888 left a comment

Choose a reason for hiding this comment

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

Looks good. Verified all DistributionSummary fields are now initialized with the NoOpDistributionSummary obj and verified the tests pass.

@EdColeman EdColeman merged commit 5d53395 into apache:2.1 May 6, 2024
@EdColeman EdColeman deleted the fix_zombie_tserver_metrics_init branch May 6, 2024 20:21
@ctubbsii ctubbsii modified the milestones: 4.0.0, 3.1.0, 2.1.3 Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants