Skip to content

HDDS-10046. Replace PrecomputedVolumeSpace with SpaceUsageSource.Fixed - #5904

Merged
adoroszlai merged 1 commit into
apache:masterfrom
adoroszlai:HDDS-10046
Jan 5, 2024
Merged

HDDS-10046. Replace PrecomputedVolumeSpace with SpaceUsageSource.Fixed#5904
adoroszlai merged 1 commit into
apache:masterfrom
adoroszlai:HDDS-10046

Conversation

@adoroszlai

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

PrecomputedVolumeSpace, added in HDDS-9380, is structurally very similar to the Fixed implementation of SpaceUsageSource. The latter is currently only used for testing. We can reduce duplication by moving Fixed from tests to production code and replacing PrecomputedVolumeSpace with it.

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

How was this patch tested?

Refactoring, covered by existing tests:
https://github.com/adoroszlai/ozone/actions/runs/7385534327

@adoroszlaiadoroszlai self-assigned this Jan 2, 2024
@adoroszlai

Copy link
Copy Markdown
ContributorAuthor

@xichen01 please review

@sadanand48sadanand48 left a comment

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.

LGTM

@adoroszlai
adoroszlai merged commit 2066868 into apache:masterJan 5, 2024
@adoroszlai
adoroszlai deleted the HDDS-10046 branch January 5, 2024 07:25
@adoroszlai

Copy link
Copy Markdown
ContributorAuthor

Thanks @sadanand48 for the review.

xichen01 pushed a commit to xichen01/ozone that referenced this pull request Jul 17, 2024
xichen01 pushed a commit to xichen01/ozone that referenced this pull request Jul 17, 2024
xichen01 pushed a commit to xichen01/ozone that referenced this pull request Jul 17, 2024
Sign up for freeto 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

@adoroszlai@sadanand48