Skip to content

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

Merged
szetszwo merged 1 commit intoapache:masterfrom
adoroszlai:HDDS-10027
Dec 29, 2023
Merged

HDDS-10027. NPE in VolumeInfoMetrics.getCommitted()#5885
szetszwo merged 1 commit intoapache:masterfrom
adoroszlai:HDDS-10027

Conversation

@adoroszlai
Copy link
Copy Markdown
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
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 ec2634d into apache:master Dec 29, 2023
@adoroszlai adoroszlai deleted the HDDS-10027 branch December 29, 2023 16:39
@adoroszlai
Copy link
Copy Markdown
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