You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2022/06/08 20:20:00 UTC

[jira] [Created] (HDDS-6847) Audit for ALLOCATE_BLOCK should indicate number of allocated blocks

Attila Doroszlai created HDDS-6847:
--------------------------------------

             Summary: Audit for ALLOCATE_BLOCK should indicate number of allocated blocks
                 Key: HDDS-6847
                 URL: https://issues.apache.org/jira/browse/HDDS-6847
             Project: Apache Ozone
          Issue Type: Improvement
          Components: SCM
            Reporter: Attila Doroszlai
            Assignee: Attila Doroszlai


ALLOCATE_BLOCK audit message reports success even if SCM is unable to allocate enough blocks.  It should indicate the actual number of allocated blocks.  Also consider logging as FAILURE instead of SUCCESS.

{noformat}
2022-06-08 19:40:49,262 | INFO  | SCMAudit | user=om | ip=... | op=ALLOCATE_BLOCK {replication=EC/ECReplicationConfig{data=5, parity=2, ecChunkSize=104448, codec=rs}, owner=om1, size=268435456, num=1} | ret=SUCCESS |
{noformat}

{noformat}
2022-06-08 19:40:49,262 ERROR org.apache.hadoop.hdds.scm.block.BlockManagerImpl: Unable to allocate a block for the size: 268435456, replicationConfig: EC/ECReplicationConfig{data=5, parity=2, ecChunkSize=104448, codec=rs}
{noformat}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org