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

Anastasia Kostryukova commented on HDDS-9585:
---------------------------------------------

Currently, in the project, there are two types of logs describing container 
import/export. As it's seen, they clearly distinguish the events.

For exporting :

{color:#000000}2025-04-22 13:50:42,976 
[e24e5054-103c-4c53-91c0-2ded8754cbf6-ContainerReplicationThread-0] INFO 
replication.PushReplicator: Starting replication of container 1 to 
fe77d839-4b79-4d10-8a97-0d840cad3ea8(ozone-balancer-datanode4-1.ozone-balancer_default/172.18.0.7)
 using NO_COMPRESSION{color}

{color:#000000}2025-04-22 13:50:44,319 
[e24e5054-103c-4c53-91c0-2ded8754cbf6-ContainerReplicationThread-0] INFO 
replication.GrpcOutputStream: Sent 74221056 bytes for container 1{color}

{color:#000000}2025-04-22 13:50:44,907 [grpc-default-executor-9] INFO 
replication.GrpcContainerUploader: Finished uploading container 1 to 
fe77d839-4b79-4d10-8a97-0d840cad3ea8(ozone-balancer-datanode4-1.ozone-balancer_default/172.18.0.7){color}

For importing:

{color:#000000}2025-04-22 13:50:43,210 
[fe77d839-4b79-4d10-8a97-0d840cad3ea8-ReplicationContainerReader-1] INFO 
replication.SendContainerRequestHandler: Accepting container 1{color}
{color:#000000}2025-04-22 13:50:44,326 
[fe77d839-4b79-4d10-8a97-0d840cad3ea8-ReplicationContainerReader-1] INFO 
replication.SendContainerRequestHandler: Container 1 is downloaded with size 
74221056, starting to import.{color}
{color:#000000}2025-04-22 13:50:44,887 
[fe77d839-4b79-4d10-8a97-0d840cad3ea8-ReplicationContainerReader-1] INFO 
replication.SendContainerRequestHandler: Container 1 is replicated 
successfully{color}

> Fix import/export messages in container log
> -------------------------------------------
>
>                 Key: HDDS-9585
>                 URL: https://issues.apache.org/jira/browse/HDDS-9585
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Ethan Rose
>            Assignee: Anastasia Kostryukova
>            Priority: Major
>
> Right now logging for container import and export in the container log does 
> not add a message to distinguish these events. It just shows up as another 
> container close entry. In addition to adding these messages, it would be good 
> to also log where the container was sent or where it was retrieved from. This 
> part of the change would be more involved because the current place in the 
> code where the container logger is invoked does not have access to this 
> information.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to