errose28 commented on PR #6936:
URL: https://github.com/apache/ozone/pull/6936#issuecomment-2229760429

   Hi @slfan1989, I agree more diagnostic info would be helpful. As Attila 
said, the datanode audit log is for requests it receives from clients. That is 
why it has `user` and `ip` fields which are null in your example. It currently 
does not have logging for intra-datanode operations. Ozone already has a 
feature to "audit" changes to containers which was added in HDDS-8062 and might 
be a better fit for this type of thing. The file `dn-container.log` currently 
only logs a container as recovered on 
[success](https://github.com/apache/ozone/blob/930d3f0552b86d6605625cabe5e8961652d14fa2/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueHandler.java#L1051),
 but adding logging for failure scenarios would be useful too. There is logging 
for failed container scans there as well.
   
   Also, I see the example success log is at the block level, but EC 
reconstruction happens at the container level. Having one success or failure 
log for every block would probably be too verbose. If we can just log once per 
container on success or failure that would be more concise.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to