[ 
https://issues.apache.org/jira/browse/HDDS-9749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17788633#comment-17788633
 ] 

Tsz-wo Sze commented on HDDS-9749:
----------------------------------

One more bug is that 
- nextClosestPowerIndexOfTwo(16) returns 5.  It should return 4 since 2^4 = 16.

It has similar problem for all powers of two.

> Infinite loop in ReconUtils.nextClosestPowerIndexOfTwo()
> --------------------------------------------------------
>
>                 Key: HDDS-9749
>                 URL: https://issues.apache.org/jira/browse/HDDS-9749
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: Ozone Recon
>    Affects Versions: 1.4.0
>            Reporter: Wei-Chiu Chuang
>            Assignee: Tsz-wo Sze
>            Priority: Major
>         Attachments: Screen Shot 2023-11-20 at 4.40.32 PM.png, Screen Shot 
> 2023-11-20 at 4.58.48 PM.png
>
>
> Looks like the input parameter can be -1, in which case the method does not 
> exit (infinite loop) and it hogs CPU time.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to