Jackson Yao created HDDS-5761:
---------------------------------

             Summary: should not shutdown when setting a bigger bucket quota  
than volume quota
                 Key: HDDS-5761
                 URL: https://issues.apache.org/jira/browse/HDDS-5761
             Project: Apache Ozone
          Issue Type: Bug
            Reporter: Jackson Yao


2021-09-17 19:49:52,521 [ServiceDiscovery-FixedTimeSyncPolicy-EventThread] INFO 
shaded.org.apache.zookeeper.ClientCnxn: EventThread shut down
2021-09-17 19:50:35,311 [OM StateMachine ApplyTransaction Thread - 0] ERROR 
org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine: Terminating with 
exit status 1: Request cmdType: SetBucketProperty
traceID: ""
clientId: "client-17FFC13BD6EB"
userInfo {
 userName: "ozoneadmin"
 remoteAddress: "172.16.16.19"
 hostName: "tbds-172-16-16-19"
}
version: 1
setBucketPropertyRequest {
 bucketArgs {
 volumeName: "cartest"
 bucketName: "bucket01"
 quotaInBytes: 256000
 quotaInNamespace: 25
 }
 modificationTime: 1631879435219
}
failed with exception
java.lang.IllegalArgumentException: Total buckets quota in this volume should 
not be greater than volume quota : the total space quota is set to:256000. But 
the volume space quota is:102400
 at 
org.apache.hadoop.ozone.om.request.bucket.OMBucketSetPropertyRequest.checkQuotaBytesValid(OMBucketSetPropertyRequest.java:281)
 at 
org.apache.hadoop.ozone.om.request.bucket.OMBucketSetPropertyRequest.validateAndUpdateCache(OMBucketSetPropertyRequest.java:172)
 at 
org.apache.hadoop.ozone.protocolPB.OzoneManagerRequestHandler.handleWriteRequest(OzoneManagerRequestHandler.java:246)
 at 
org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine.runCommand(OzoneManagerStateMachine.java:472)
 at 
org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine.lambda$2(OzoneManagerStateMachine.java:291)
 at 
java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
 at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 at java.lang.Thread.run(Thread.java:748)
2021-09-17 19:50:35,317 [shutdown-hook-0] INFO 
org.apache.hadoop.ozone.om.OzoneManagerStarter: SHUTDOWN_MSG:



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to