[
https://issues.apache.org/jira/browse/HDFS-12100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lokesh Jain updated HDFS-12100:
-------------------------------
Attachment: HDFS-12100-HDFS-7240.001.patch
This patch adds functionality for volume quota to be honoured after key
allocation and deletion. For this a "sizeInBytes" field is introduced in
org.apache.hadoop.ozone.protocol.proto.KeySpaceManagerProtocolProtos.VolumeInfo.
Two configuration properties have been added for configuring the size and
units of volume quota. Further key allocation now raises an exception if key
size is negative and key deletion raises exception if new volume size after
deletion would be negative.
> Ozone: KSM: Allocate key should honour volume quota if quota is set on the
> volume
> ---------------------------------------------------------------------------------
>
> Key: HDFS-12100
> URL: https://issues.apache.org/jira/browse/HDFS-12100
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: ozone
> Affects Versions: HDFS-7240
> Reporter: Mukul Kumar Singh
> Assignee: Lokesh Jain
> Fix For: HDFS-7240
>
> Attachments: HDFS-12100-HDFS-7240.001.patch
>
>
> KeyManagerImpl#allocateKey currently does not check the volume quota before
> allocating a key, this can cause the volume quota overrun.
> Volume quota needs to be check before allocating the key in the SCM.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]