-
Notifications
You must be signed in to change notification settings - Fork 594
HDDS-7503. CLI admin namespace -quota should return whole file system disk capacity consumed by all replicas #3976
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
Conversation
…ity consumed by all replicas
jojochuang
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.
Looks good except for a few import order issues.
Question: Can you help me understand why testQuotaUsage() had the expected quota output even before the fix?
...zone/recon/src/test/java/org/apache/hadoop/ozone/recon/api/TestNSSummaryEndpointWithFSO.java
Show resolved
Hide resolved
| import org.apache.hadoop.ozone.recon.spi.impl.OzoneManagerServiceProviderImpl; | ||
| import org.apache.hadoop.ozone.recon.spi.impl.StorageContainerServiceProviderImpl; | ||
| import org.apache.hadoop.ozone.recon.tasks.NSSummaryTaskWithFSO; | ||
| import org.apache.hadoop.ozone.recon.scm.ReconNodeManager; |
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.
nit: move this line up by one line to correct the import order.
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.
sure!
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.
Actually, this one and the other ReconNodeManager import needs to move more than one line.
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.
sure!
...e/recon/src/test/java/org/apache/hadoop/ozone/recon/api/TestNSSummaryEndpointWithLegacy.java
Show resolved
Hide resolved
| import org.apache.hadoop.ozone.recon.spi.impl.OzoneManagerServiceProviderImpl; | ||
| import org.apache.hadoop.ozone.recon.spi.impl.StorageContainerServiceProviderImpl; | ||
| import org.apache.hadoop.ozone.recon.tasks.NSSummaryTaskWithLegacy; | ||
| import org.apache.hadoop.ozone.recon.scm.ReconNodeManager; |
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.
nit: move this line up by one line to correct the import order.
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.
sure!
Then next time please open such PR as draft, to skip CI and let reviewers be aware of upcoming changes. Or only open it after the other PR is merged. |
Yes! sure! thank you Atila!! |
jojochuang
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.
I think we need to make sure volume and bucket level quota does not change, only the root level quota should change.
yes, agree! |
|
Thanks @DaveTeng0 @adoroszlai |
… disk capacity consumed by all replicas (apache#3976)
What changes were proposed in this pull request?
Command ozone admin namespace quota should return whole file system's disk capacity for root/volume/bucket.
(HDFS -df command returns whole file system's disk capacity for directory)
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-7503
How was this patch tested?
manual test.