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

Bucket quota set command sets bucket Ratis Replication factor to 1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      Setting the space-quota for a bucket sets the bucket ratis replication factor to ONE (standalone).  Subsequently all keys created under the bucket have a replication factor of ONE, even though the ozone-site default replication factor is 3.

       

      When an ozone cluster is configured with ozone.server.default.replication=3 and ozone.server.default.replication.type=RATIS, a bucket quota applied to a bucket also incorrectly sets the ratis replication factor to ONE for the bucket.

       

      Reproduce through following steps on the docker ozone dev cluster:

       

      bash-4.2$ ozone sh volume create /vol1
      bash-4.2$ ozone sh bucket create /vol1/bucket1
      bash-4.2$ ozone sh bucket setquota --space-quota 3000000000 /vol1/bucket1
      bash-4.2$ ozone sh bucket info /vol1/bucket1
      {
        "metadata" : { },
        "volumeName" : "vol1",
        "name" : "bucket1",
        "storageType" : "DISK",
        "versioning" : false,
        "usedBytes" : 0,
        "usedNamespace" : 0,
        "creationTime" : "2022-11-24T18:38:40.193Z",
        "modificationTime" : "2022-11-24T18:40:26.362Z",
        "quotaInBytes" : 3000000000,
        "quotaInNamespace" : -1,
        "bucketLayout" : "LEGACY",
        "replicationConfig" : {
          "replicationFactor" : "ONE",
          "requiredNodes" : 1,
          "replicationType" : "RATIS"
        },
        "link" : false
      }
      

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              NeilJoshi Neil Joshi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: