adoroszlai opened a new pull request, #4217:
URL: https://github.com/apache/ozone/pull/4217

   ## What changes were proposed in this pull request?
   
   Reuse existing `MeasuredReplicator` wrapper to register metrics for push 
replication, too.
   
   https://issues.apache.org/jira/browse/HDDS-7778
   
   ## How was this patch tested?
   
   Ran replication test (copied from `ozonesecure`) in `ozone` compose 
environment:
   
   ```
   start_docker_env 3
   
   execute_robot_test scm basic/basic.robot
   
   execute_robot_test scm admincli/container.robot
   
   # test replication
   docker-compose up -d --scale datanode=2
   execute_robot_test scm -v container:1 -v count:2 replication/wait.robot
   docker-compose up -d --scale datanode=3
   execute_robot_test scm -v container:1 -v count:3 replication/wait.robot
   ```
   
   Datanode log:
   
   ```
   [ContainerReplicationThread-0] INFO replication.GrpcOutputStream: Sent 30208 
bytes for container 1
   ```
   
   Verified metrics via JMX:
   
   ```
   {
     "name" : "Hadoop:service=HddsDatanode,name=ContainerReplicator/push",
     "modelerType" : "ContainerReplicator/push",
     "tag.Context" : "dfs",
     "tag.Hostname" : "afeb2cccdbb9",
     "Failure" : 0,
     "FailureBytes" : 0,
     "FailureTime" : 0,
     "QueueTime" : 3,
     "Success" : 1,
     "SuccessTime" : 245,
     "TransferredBytes" : 30208
   }
   ```
   
   Regular CI:
   https://github.com/adoroszlai/hadoop-ozone/actions/runs/4026673527


-- 
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