Stephen O'Donnell created HDDS-5771:
---------------------------------------

             Summary: Speed up TestDatanodeHddsVolumeFailureToleration by 
reducing dead interval
                 Key: HDDS-5771
                 URL: https://issues.apache.org/jira/browse/HDDS-5771
             Project: Apache Ozone
          Issue Type: Improvement
          Components: test
    Affects Versions: 1.2.0
            Reporter: Stephen O'Donnell
            Assignee: Stephen O'Donnell


In TestDatanodeHddsVolumeFailureToleration, the tests wait for a long time on a 
DN to be marked dead by SCM. This is because the stale, dead and heartbeat 
intervals have not been set low enough, as they are using the default. Changing 
the various timers, the runtime is reduced from about 4mins to 53 seconds on my 
laptop.

Further, there are two tests - one that fails one volume on a DN and ensures it 
can restart ok. Then a test which fails 2 volumes and ensure it fails to start. 
We can combine these two tests into 1 and save creating a second mini-Cluster. 
This further reduces the runtime to 37s.

On github, this test runs in:

{code}
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 236.534 
s - in org.apache.hadoop.ozone.dn.volume.TestDatanodeHddsVolumeFailureToleration
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to