Skip to content

HDDS-14176. Do not use Optional for volumeUsage#9503

Merged
szetszwo merged 1 commit intoapache:masterfrom
adoroszlai:HDDS-14176
Dec 15, 2025
Merged

HDDS-14176. Do not use Optional for volumeUsage#9503
szetszwo merged 1 commit intoapache:masterfrom
adoroszlai:HDDS-14176

Conversation

@adoroszlai
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Avoid using Optional for StorageVolume#volumeUsage, and some minor improvements in the code being touched.

  • Inline VolumeUsage#isReservedUsagesInRange so that we can combine two separate warnings, both of which had only half of the relevant information.
  • Store values being checked in checkVolumeUsages for consistency between check and log message.

https://issues.apache.org/jira/browse/HDDS-14176

How was this patch tested?

CI:
https://github.com/adoroszlai/ozone/actions/runs/20226487252

@adoroszlai adoroszlai self-assigned this Dec 15, 2025
@adoroszlai adoroszlai added the code-cleanup Changes that aim to make code better, without changing functionality. label Dec 15, 2025
@adoroszlai adoroszlai requested a review from szetszwo December 15, 2025 15:15
Copy link
Copy Markdown
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

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

+1 the change looks good.

@szetszwo szetszwo merged commit cafd9dd into apache:master Dec 15, 2025
43 checks passed
@adoroszlai adoroszlai deleted the HDDS-14176 branch December 15, 2025 18:54
@adoroszlai
Copy link
Copy Markdown
Contributor Author

Thanks @szetszwo for reviewing and merging this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-cleanup Changes that aim to make code better, without changing functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants