George Huang created HDDS-6242:
----------------------------------

             Summary: 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
            Reporter: George Huang


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to