You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Aravindan Vijayan (Jira)" <ji...@apache.org> on 2022/02/08 17:49:00 UTC

[jira] [Assigned] (HDDS-6242) OM throws VOLUME_NOT_FOUND exception when client deleting an volume from command line

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

Aravindan Vijayan reassigned HDDS-6242:
---------------------------------------

    Assignee: Zita Dombi

> OM throws VOLUME_NOT_FOUND exception when client deleting an volume from command line
> -------------------------------------------------------------------------------------
>
>                 Key: HDDS-6242
>                 URL: https://issues.apache.org/jira/browse/HDDS-6242
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: Ozone Manager
>    Affects Versions: 1.2.0
>            Reporter: George Huang
>            Assignee: Zita Dombi
>            Priority: Major
>
> List volumes from client command line:  ozone sh volume list
> Command displays output something like this:
> :
> },
> {   "metadata" : \\{ }
> ,
>   *"name" : "vol-8-92232",*
>   "admin" : "hdfs",
>   "owner" : "hdfs",
>   "quotaInBytes" : -1,
>   "quotaInNamespace" : -1,
>   "usedNamespace" : 2,
>   "creationTime" : "2021-12-22T01:24:07.385Z",
>   "modificationTime" : "2021-12-22T01:24:07.385Z",
>   "acls" : [
> {     "type" : "USER",     "name" : "hdfs",     "aclScope" : "ACCESS",     "aclList" : [ "ALL" ]   }
> ,
> {     "type" : "GROUP",     "name" : "hdfs",     "aclScope" : "ACCESS",     "aclList" : [ "ALL" ]   }
> ,
> {     "type" : "GROUP",     "name" : "hadoop",     "aclScope" : "ACCESS",     "aclList" : [ "ALL" ]   }
> ]
> }, {
> :
> Then trying to delete the volume using command: 
> *ozone fs -rm -skipTrash -r ofs://ozone1/vol-8-92232*
>  
> However the OM log showing following:
> |10:15:23.193 PM|ERROR|OMBucketDeleteRequest|Delete bucket failed for bucket:bucket-874-00781 in volume:vol-8-92232
> VOLUME_NOT_FOUND org.apache.hadoop.ozone.om.exceptions.OMException: Volume vol-8-92232 is not found
> at org.apache.hadoop.ozone.om.OzoneManager.getVolumeOwner(OzoneManager.java:2081)
> at org.apache.hadoop.ozone.om.OzoneManager.getVolumeOwner(OzoneManager.java:2054)
> at org.apache.hadoop.ozone.om.request.OMClientRequest.checkAcls(OMClientRequest.java:198)
> at org.apache.hadoop.ozone.om.request.bucket.OMBucketDeleteRequest.validateAndUpdateCache(OMBucketDeleteRequest.java:101)
> at org.apache.hadoop.ozone.protocolPB.OzoneManagerRequestHandler.handleWriteRequest(OzoneManagerRequestHandler.java:244)
> at org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine.runCommand(OzoneManagerStateMachine.java:502)
> at org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine.lambda$2(OzoneManagerStateMachine.java:312)
> 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)|



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org