-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-7523. ContainerReportQueue#take may return null #9581
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
base: master
Are you sure you want to change the base?
Conversation
Gargi-jais11
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @cchung100m for the patch.
It seems that all other three bugs reported in the main jira is already fixed and even in the sonarcloud its not there.
LGTM.
|
@cchung100m Please fix the PR title to |
|
Thanks @cchung100m for the patch. Since this is such a small change, can you please also fix some other warnings in the same file?
|
adoroszlai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @cchung100m for updating the patch.
| Objects.requireNonNull(value); | ||
| while (!addValue(value)) { | ||
| Thread.currentThread().sleep(10); | ||
| Thread.sleep(10); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is one more:
Line 249 in 88c51fd
| Thread.currentThread().sleep(10); |
What changes were proposed in this pull request?
Fix the take function is marked
@Nonnullbut but null might returnedWhat is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-7523
How was this patch tested?
Existing unit and integration tests