You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "cchung100m (via GitHub)" <gi...@apache.org> on 2026/01/03 15:02:20 UTC

[PR] HDDS-7523: Fix the take function is marked @Nonnull but but null might returned [ozone]

cchung100m opened a new pull request, #9581:
URL: https://github.com/apache/ozone/pull/9581

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-7523. Fix warnings in ContainerReportQueue [ozone]

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai merged PR #9581:
URL: https://github.com/apache/ozone/pull/9581


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-7523. Fix warnings in ContainerReportQueue [ozone]

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on PR #9581:
URL: https://github.com/apache/ozone/pull/9581#issuecomment-3720045588

   Thanks @cchung100m for the patch.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-7523: Fix the take function is marked @Nonnull but but null might returned [ozone]

Posted by "Gargi-jais11 (via GitHub)" <gi...@apache.org>.
Gargi-jais11 commented on PR #9581:
URL: https://github.com/apache/ozone/pull/9581#issuecomment-3709030204

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-7523. ContainerReportQueue#take may return null [ozone]

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on code in PR #9581:
URL: https://github.com/apache/ozone/pull/9581#discussion_r2668291820


##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/ContainerReportQueue.java:
##########
@@ -232,7 +232,7 @@ public ContainerReport peek() {
   public void put(@Nonnull ContainerReport value) throws InterruptedException {
     Objects.requireNonNull(value);
     while (!addValue(value)) {
-      Thread.currentThread().sleep(10);
+      Thread.sleep(10);

Review Comment:
   There is one more:
   
   https://github.com/apache/ozone/blob/88c51fdde73453f0ee1b484490350c07a047e235/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/ContainerReportQueue.java#L249



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-7523. ContainerReportQueue#take may return null [ozone]

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on PR #9581:
URL: https://github.com/apache/ozone/pull/9581#issuecomment-3709244055

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org