[ 
https://issues.apache.org/jira/browse/HDDS-404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16605661#comment-16605661
 ] 

Elek, Marton commented on HDDS-404:
-----------------------------------

+1 tested and worked well:

{code}
ozoneManager_1  | 2018-09-06 11:26:34,965 | INFO  | OMAudit | user=hadoop 
ip=172.18.0.2 op=COMMIT_KEY {volume=vol1, bucket=bucket, key=file1, 
dataSize=19183, replicationType=null, replicationFactor=null, 
keyLocationInfo=[{blockID={containerID=19, localID=1536233192775}, 
shouldCreateContainer=false, length=19183, offset=0, createVersion=0}], 
clientID=95448156962391} ret=SUCCESS |
{code}

> Implement toString() in OmKeyLocationInfo
> -----------------------------------------
>
>                 Key: HDDS-404
>                 URL: https://issues.apache.org/jira/browse/HDDS-404
>             Project: Hadoop Distributed Data Store
>          Issue Type: Improvement
>          Components: Ozone Manager
>            Reporter: Dinesh Chitlangia
>            Assignee: Dinesh Chitlangia
>            Priority: Major
>              Labels: Logging
>             Fix For: 0.2.1
>
>         Attachments: HDDS-404.001.patch
>
>
> OmKeyLocationInfo does not have an overridden toString().
> As such, the information is not captured appropriately in Audit Logging.
> Example:
> {{2018-09-06 01:57:22,950 | INFO  | OMAudit | user=hadoop | ip=172.18.0.4 | 
> op=COMMIT_KEY | \{volume=vol-0-16241, bucket=bucket-0-61479, 
> key=key-257-04655, dataSize=10240, replicationType=null, 
> replicationFactor=null, 
> keyLocationInfo=[org.apache.hadoop.ozone.om.helpers.OmKeyLocationInfo@5fb8c959],
>  clientID=61945301411} | ret=SUCCESS |}}
>  
> This Jira proposes to implement the required toString() so that audit log 
> contains appropriate data.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to