Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-7479 Investigate -100% Volume and bucket quotas working
  3. HDDS-8372

Minimum Storage quota should be default block size * replication factor

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Minimum Storage quota should be default block size * replication factor

      Currently while setting the storage quota, user is allowed to set the quota to values lesser than block size*replication factor .

      Whereas while writing the data [key put] operation , the operation gets errored out because quota is being set to value lesser than default block size * replication factor

      Should we restrict the setting of quota only to equal to or greater than default block size * replication factor or we can document  this in official documentation

      Command Executed

      [root@quasar-tvqwpy-1 /]# ozone sh key put /volume4/bucket4/key1 /tmp/testdata/test
      QUOTA_EXCEEDED The DiskSpace quota of bucket:bucket4 exceeded quotaInBytes: 13500 Bytes but diskspace consumed: 805306368 Bytes.
      [root@quasar-tvqwpy-1 /]# 
      [root@quasar-tvqwpy-1 /]# 
      [root@quasar-tvqwpy-1 /]# ozone sh bucket info /volume4/bucket4
      {
        "metadata" : { },
        "volumeName" : "volume4",
        "name" : "bucket4",
        "storageType" : "DISK",
        "versioning" : false,
        "usedBytes" : 0,
        "usedNamespace" : 0,
        "creationTime" : "2023-04-04T07:07:28.246Z",
        "modificationTime" : "2023-04-04T07:38:41.902Z",
        "quotaInBytes" : 13500,
        "quotaInNamespace" : -1,
        "bucketLayout" : "LEGACY",
        "link" : false
      }
      [root@quasar-tvqwpy-1 /]# ls -lrt /tmp/testdata/
      total 8
      -rw-r--r-- 1 root root 4500 Apr  4 07:23 test 

      Attachments

        Issue Links

          Activity

            People

              asarin Arun Sarin
              asarin Arun Sarin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: