[ 
https://issues.apache.org/jira/browse/HDDS-7470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sadanand Shenoy resolved HDDS-7470.
-----------------------------------
    Resolution: Fixed

> [Quota] bucket is created crossing quota makes OM crash and unable to start
> ---------------------------------------------------------------------------
>
>                 Key: HDDS-7470
>                 URL: https://issues.apache.org/jira/browse/HDDS-7470
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Sumit Agrawal
>            Assignee: Sumit Agrawal
>            Priority: Major
>              Labels: pull-request-available
>
> ./ozone sh volume create --space-quota=1GB --namespace-quota=10 /sumit
> ./ozone sh bucket create --space-quota=800MB --namespace-quota=5 /sumit/one
> ./ozone sh bucket create --space-quota=800MB --namespace-quota=5 /sumit/two
> <-- This step OM is crashed, and on restart, keeps crashing.
> The reason is exception is thrown during applyTransaction(), and OM 
> terminates. On restart, again it try apply the transaction and keeps crashing.
>  
> {code:java}
> 2022-11-09 16:41:08,317 INFO server.Server (Server.java:doStart(375)) - 
> jetty-9.4.49.v20220914; built: 2022-09-14T01:07:36.601Z; git: 
> 4231a3b2e4cb8548a412a789936d640a97b1aa0a; jvm 1.8.0_292-b10
> 2022-11-09 16:41:08,345 ERROR ratis.OzoneManagerStateMachine 
> (ExitUtils.java:terminate(133)) - Terminating with exit status 1: Request 
> cmdType: CreateBucket
> traceID: ""
> clientId: "client-315E9036A608"
> userInfo {
> userName: "sumitagrawal"
> remoteAddress: "127.0.0.1"
> hostName: "localhost"
> }
> version: 3
> createBucketRequest {
> bucketInfo {
> volumeName: "sumit"
> bucketName: "two"
> acls {
> type: USER
> name: "sumitagrawal"
> rights: "\200"
> aclScope: ACCESS
> }
> ...
> ...
> isVersionEnabled: false
> storageType: DISK
> creationTime: 1667992142575
> objectID: 0
> updateID: 0
> modificationTime: 1667992142575
> usedBytes: 0
> quotaInBytes: 838860800
> quotaInNamespace: 5
> usedNamespace: 0
> owner: "sumitagrawal"
> }
> }
> 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:1677721600. But the volume space quota is:1073741824
> at 
> org.apache.hadoop.ozone.om.request.bucket.OMBucketCreateRequest.checkQuotaBytesValid(OMBucketCreateRequest.java:408)
> at 
> org.apache.hadoop.ozone.om.request.bucket.OMBucketCreateRequest.validateAndUpdateCache(OMBucketCreateRequest.java:210)
> at 
> org.apache.hadoop.ozone.protocolPB.OzoneManagerRequestHandler.handleWriteRequest(OzoneManagerRequestHandler.java:311)
> at 
> org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine.runCommand(OzoneManagerStateMachine.java:533)
> at 
> org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine.lambda$1(OzoneManagerStateMachine.java:324)
> at 
> java.util.concurrent.CompletableFuture$AsyncSupply.run$$$capture(CompletableFuture.java:1604)
> at 
> java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java)
> 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)
> 2022-11-09 16:41:08,350 INFO om.OzoneManagerStarter 
> (StringUtils.java:lambda$startupShutdownMessage$0(124)) - SHUTDOWN_MSG:
> /************************************************************
> SHUTDOWN_MSG: Shutting down OzoneManager at sumitagrawal-MBP16/192.168.0.103
> ************************************************************/
> {code}



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