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

HDDS-10027. NPE in VolumeInfoMetrics.getCommitted() #5885

Merged
merged 1 commit into from
Dec 29, 2023

Conversation

adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

Fix NPE in HddsVolume.getCommitted(), which can happen for failed volumes.

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

How was this patch tested?

Added assertion unit test.

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

@adoroszlai adoroszlai self-assigned this Dec 29, 2023
@adoroszlai adoroszlai requested a review from szetszwo December 29, 2023 12:53
Copy link
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 ec2634d into apache:master Dec 29, 2023
34 checks passed
@adoroszlai adoroszlai deleted the HDDS-10027 branch December 29, 2023 16:39
@adoroszlai
Copy link
Contributor Author

Thanks @szetszwo for reporting the bug, reviewing and merging the PR.

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