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 Storage Quota Utilization Metric Emission for Zero-Sized Segments #14780

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Yuyaoo
Copy link

@Yuyaoo Yuyaoo commented Jan 8, 2025

Overview

This PR updates the StorageQuotaChecker to ensure that the storage quota utilization metric is emitted during realtime segment validation. Previously, the metric was skipped for segments with a size of 0, which usually indicates a realtime validation path. Now that storage quota is supported for realtime tables, we need to monitor the metric.

Related PR: Storage quota imposition on realtime tables

Testing

Tested by triggering the RealtimeSegmentValidationManager periodic task within an integration test and using VisualVM to confirm that the tableStorageQuotaUtilization is emitted in controller metrics.

image

@sajjad-moradi
Copy link
Contributor

Please describe how you verified the metrics are actually emitted (maybe a screenshot of the metric in jvisualvm for an integration test)

@Yuyaoo Yuyaoo marked this pull request as ready for review January 8, 2025 23:27
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.

2 participants