Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-290

putKey is failing with KEY_ALLOCATION_ERROR

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.2.1
    • None
    • None

    Description

      1. List the buckets in Volume /namit

      hadoop@288c0999be17:~$ ozone oz -listBucket /namit
      2018-07-24 18:53:26 WARN  NativeCodeLoader:60 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      [ {
        "volumeName" : "namit",
        "bucketName" : "abc",
        "createdOn" : "Fri, 29 Jul +50529 22:02:39 GMT",
        "acls" : [ {
          "type" : "USER",
          "name" : "hadoop",
          "rights" : "READ_WRITE"
        }, {
          "type" : "GROUP",
          "name" : "users",
          "rights" : "READ_WRITE"
        } ],
        "versioning" : "DISABLED",
        "storageType" : "DISK"
      }, {
        "volumeName" : "namit",
        "bucketName" : "hjk",
        "createdOn" : "Sat, 30 Jul +50529 10:37:24 GMT",
        "acls" : [ {
          "type" : "USER",
          "name" : "hadoop",
          "rights" : "READ_WRITE"
        }, {
          "type" : "GROUP",
          "name" : "users",
          "rights" : "READ_WRITE"
        } ],
        "versioning" : "DISABLED",
        "storageType" : "DISK"
      } ]
      

      2. Now list the keys in bucket /namit/abc

      hadoop@288c0999be17:~$ ozone oz -listKey /namit/abc
      2018-07-24 18:53:56 WARN  NativeCodeLoader:60 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      [ ]
      

      3. Now try to put a key to the bucket. It fails as below:

      hadoop@288c0999be17:~$ cat aa
      hgfhjljkjhf
      hadoop@288c0999be17:~$ ozone oz -putKey /namit/abc/aa -file aa
      2018-07-24 18:54:19 WARN  NativeCodeLoader:60 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      Command Failed : Create key failed, error:KEY_ALLOCATION_ERROR
      hadoop@288c0999be17:~$
      

      Attachments

        1. HDDS-290.00.patch
          7 kB
          Xiaoyu Yao

        Activity

          People

            xyao Xiaoyu Yao
            nmaheshwari Namit Maheshwari
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: