Skip to content

minor: Get StorageMonitor metrics from StorageLocations.#19494

Merged
gianm merged 3 commits into
apache:masterfrom
gianm:storagemonitor-metrics
May 22, 2026
Merged

minor: Get StorageMonitor metrics from StorageLocations.#19494
gianm merged 3 commits into
apache:masterfrom
gianm:storagemonitor-metrics

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented May 21, 2026

This patch changes StorageMonitor to get metrics from StorageLocations directly, rather than through SegmentLocalCacheManager. This simplifies the logic by removing an unnecessary layer. It also ensures that metrics are reported properly no matter how the StorageLocations are accessed.

This patch changes StorageMonitor to get metrics from StorageLocations
directly, rather than through SegmentLocalCacheManager. This simplifies
the logic by removing an unnecessary layer. It also ensures that metrics
are reported properly no matter how the StorageLocations are accessed.
@github-actions github-actions Bot added Area - Batch Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 labels May 21, 2026
@gianm gianm closed this May 21, 2026
@gianm gianm reopened this May 21, 2026
Copy link
Copy Markdown
Member

@FrankChen021 FrankChen021 left a comment

Choose a reason for hiding this comment

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

Severity Findings
P0 0
P1 0
P2 1
P3 0
Total 1

Reviewed 9 of 9 changed files.


This is an automated review by Codex GPT-5.5

Copy link
Copy Markdown
Contributor

@capistrant capistrant left a comment

Choose a reason for hiding this comment

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

metrics parts +1. left non-stats question about the diff in SegmentLocalCacheManager

Comment on lines +474 to +476
if (!config.isVirtualStorage()) {
return AcquireSegmentAction.missingSegment();
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this feels off topic, can you provide some context? this also seems to make lines 486 to 488 below dead code, if it is indeed safe to hoist this block up out of the synchronized block

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Right, this isn't related to the main change, it's an opportunistic change to one of the related files. I'll pull it out and do it in a separate PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@gianm gianm merged commit 983c0c3 into apache:master May 22, 2026
12 checks passed
@gianm gianm deleted the storagemonitor-metrics branch May 22, 2026 06:57
@github-actions github-actions Bot added this to the 38.0.0 milestone May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area - Batch Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 jacoco:skip

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants