Chi-Hsuan Huang created HDDS-17947:
--------------------------------------

             Summary: Replace fixed sleeps in balancer acceptance test
                 Key: HDDS-17947
                 URL: https://issues.apache.org/jira/browse/HDDS-17947
             Project: Apache Ozone
          Issue Type: Sub-task
          Components: test
            Reporter: Chi-Hsuan Huang


{{ozone-balancer/test-ratis.sh}} and {{test-ec.sh}} spend about 11 and 12 
minutes in {{balancer/testBalancer.robot}} (median Robot time of 10 master 
runs: 652s and 710s).

Most of it is fixed sleeps: 60s after entering maintenance, 300s after 
recommission, and 60s after each balancer run.

The 300s sleep is needed because the balancer only moves CLOSED containers with 
CLOSED replicas. Closing takes about 2.5 minutes because 
{{ozone-balancer/docker-config}} does not set 
{{ozone.scm.close.container.wait.duration}}, so SCM waits the default 150s 
before sending close to datanodes. {{ozone}}, {{ozonesecure}} and 
{{ozonesecure-ha}} set it to 5s.

Proposed change:
* set {{ozone.scm.close.container.wait.duration=5s}} in 
{{ozone-balancer/docker-config}}
* replace the 300s sleep with a wait until all containers and replicas are 
CLOSED
* drop the 60s sleep after maintenance, the next step already waits for 
pipelines to close

In a fork run with this change, 20/20 passed, with Robot time 303s (RATIS) and 
339s (EC), about 12 minutes less per CI run: 
[46109370948|https://github.com/chihsuan/ozone/actions/runs/46109370948]




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

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

Reply via email to