[ https://issues.apache.org/jira/browse/HDFS-17214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simbarashe Dzinamarira updated HDFS-17214: ------------------------------------------ Summary: The Quota class's andByStorageType method res has an incorrect initial value (was: The Quata class's andByStorageType method res has an incorrect initial value) > The Quota class's andByStorageType method res has an incorrect initial value > ---------------------------------------------------------------------------- > > Key: HDFS-17214 > URL: https://issues.apache.org/jira/browse/HDFS-17214 > Project: Hadoop HDFS > Issue Type: Bug > Components: rbf > Affects Versions: 3.3.4 > Reporter: xiaojunxiang > Priority: Major > Labels: pull-request-available > > The Quata class's andByStorageType method is intended to apply bitwise and to > each bit of StorageType.values( ) (the converted value), returning true only > if all the values are true. > So the initial value of res should be true and then loop through the array to > perform the bitwise and operation. > However, since res starts with fasle, the bitwise and always evaluates to > false, so we should fix res to start with true. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org