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

Overwrite an existed key with different factor or type won't update the OmKeyInfo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 1.0.0
    • None
    • Ozone Manager

    Description

      Here is the reproduce process. Put three replication, then with one replication and/or  STAND_ALONE type , the replicationFactor of the output is 3 and type is still RATIS. Vice versa, put one replication first, the replicationFactor is always going to be 1.  

      1. bin/ozone sh volume create myvol
      2. bin/ozone sh bucket create /myvol/mybucket
      3. bin/ozone sh key put -r THREE /myvol/mybucket/NOTICE.txt NOTICE.txt
      4. bin/ozone sh key info /myvol/mybucket/NOTICE.txt
        {
          "volumeName" : "myvol",
          "bucketName" : "mybucket",
          "name" : "NOTICE.txt",
          "dataSize" : 17540,
          "creationTime" : "2020-08-09T00:36:25.593Z",
          "modificationTime" : "2020-08-09T00:36:28.149Z",
          "replicationType" : "RATIS",
          "replicationFactor" : 3,
          "ozoneKeyLocations" : [ {
            "containerID" : 1,
            "localID" : 104656626357960709,
            "length" : 17540,
            "offset" : 0
          } ],
          "metadata" : { },
          "fileEncryptionInfo" : null
        }
      5. bin/ozone sh key put -r ONE -t STAND_ALONE /myvol/mybucket/NOTICE.txt NOTICE.txt
      6. bin/ozone sh key info /myvol/mybucket/NOTICE.txt
         {
          "volumeName" : "myvol",
          "bucketName" : "mybucket",
          "name" : "NOTICE.txt",
          "dataSize" : 17540,
          "creationTime" : "2020-08-09T00:36:25.593Z",
          "modificationTime" : "2020-08-09T00:38:05.381Z",
          "replicationType" : "RATIS",
          "replicationFactor" : 3,
          "ozoneKeyLocations" : [ {
            "containerID" : 5,
            "localID" : 104656632737693702,
            "length" : 17540,
            "offset" : 0
          } ],
          "metadata" : { },
          "fileEncryptionInfo" : null
        }

      Attachments

        Activity

          People

            marvelrock HuangTao
            maobaolong Baolong Mao
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: