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

Replication config of existing bucket overwritten when quota is set

    XMLWordPrintableJSON

Details

    Description

      sh-4.2$ ozone sh bucket info o3://om/vol1/saketa2

      {   "metadata" : \{ }

      ,
        "volumeName" : "vol1",
        "name" : "saketa2",
        "storageType" : "DISK",
        "versioning" : false,
        "usedBytes" : 0,
        "usedNamespace" : 0,
        "creationTime" : "2022-11-21T23:47:20.992Z",
        "modificationTime" : "2022-11-21T23:48:53.166Z",
        "encryptionKeyName" : "key1",
        "quotaInBytes" : -1,
        "quotaInNamespace" : -1,
        "bucketLayout" : "FILE_SYSTEM_OPTIMIZED",
        "replicationConfig" :

      {     "data" : 3,     "parity" : 2,     "ecChunkSize" : 1048576,     "codec" : "RS",     "replicationType" : "EC",     "requiredNodes" : 5   }

      ,
        "link" : false
      }

      sh-4.2$ ozone sh bucket setquota --quota=500MB --namespace-quota=900 o3://om/vol1/saketa2
      sh-4.2$ ozone sh bucket info o3://om/vol1/saketa2

      {   "metadata" : \{ }

      ,
        "volumeName" : "vol1",
        "name" : "saketa2",
        "storageType" : "DISK",
        "versioning" : false,
        "usedBytes" : 0,
        "usedNamespace" : 0,
        "creationTime" : "2022-11-21T23:47:20.992Z",
        "modificationTime" : "2022-11-21T23:51:29.191Z",
        "encryptionKeyName" : "key1",
        "quotaInBytes" : 524288000,
        "quotaInNamespace" : 900,
        "bucketLayout" : "FILE_SYSTEM_OPTIMIZED",
        "replicationConfig" :

      {     "replicationFactor" : "ONE",     "requiredNodes" : 1,     "replicationType" : "RATIS"   }

      ,
        "link" : false
      }

      Attachments

        Issue Links

          Activity

            People

              SaketaChalamchala Saketa Chalamchala
              SaketaChalamchala Saketa Chalamchala
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: