Skip to content

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

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

HDDS-10046. Replace PrecomputedVolumeSpace with SpaceUsageSource.Fixed#5904
adoroszlai merged 1 commit intoapache: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

@adoroszlai adoroszlai self-assigned this Jan 2, 2024
@adoroszlai
Copy link
Copy Markdown
Contributor Author

@xichen01 please review

@adoroszlai adoroszlai requested a review from sadanand48 January 4, 2024 19:32
Copy link
Copy Markdown
Contributor

@sadanand48 sadanand48 left a comment

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:master Jan 5, 2024
@adoroszlai adoroszlai deleted the HDDS-10046 branch January 5, 2024 07:25
@adoroszlai
Copy link
Copy Markdown
Contributor Author

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 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