Skip to content

Conversation

@cchung100m
Copy link
Contributor

@cchung100m cchung100m commented Jan 3, 2026

What changes were proposed in this pull request?

Fix the take function is marked @Nonnull but but null might returned

What 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

@cchung100m cchung100m marked this pull request as ready for review January 3, 2026 17:40
Copy link
Contributor

@Gargi-jais11 Gargi-jais11 left a 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.

@Gargi-jais11
Copy link
Contributor

@cchung100m Please fix the PR title to HDDS-7523. Fix the take function is marked @Nonnull but null might returned

@adoroszlai adoroszlai changed the title HDDS-7523: Fix the take function is marked @Nonnull but but null might returned HDDS-7523. ContainerReportQueue#take may return null Jan 5, 2026
@adoroszlai
Copy link
Contributor

Thanks @cchung100m for the patch.

Since this is such a small change, can you please also fix some other warnings in the same file?

  • Replace Thread.currentThread().sleep with Thread.sleep, since it's a static method.
  • orderingQueue, dataMap and droppedCount may be final.

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.

3 participants