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

   ## What changes were proposed in this pull request?
   
   `TestReplicationSupervisor#testReconcileContainerCommandDeduplication` adds 
commands the queue and then checks counters related to the queue's size. Events 
added to the queue are consumed in a different thread, so they may be removed 
before the test can check the queue counters. To fix this:
   1. Add a term to the commands so they are [executed instead of 
dropped](https://github.com/apache/ozone/blob/1aef378d70f11ed7523c397903b3a26edf93c635/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/replication/ReplicationSupervisor.java#L403)
 due the default term being 0.
   2. Make the test block command execution while it runs tests on the queue 
size. Note that [counters are not decremented until the currently processed 
task 
completes](https://github.com/apache/ozone/blob/1aef378d70f11ed7523c397903b3a26edf93c635/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/replication/ReplicationSupervisor.java#L430).
   
   ## What is the link to the Apache JIRA
   
   HDDS-13581
   
   ## How was this patch tested?
   
   Change passed 100x 
[here](https://github.com/errose28/ozone/actions/runs/17105316933).


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