Attila Doroszlai created HDDS-12183:
---------------------------------------

             Summary: Reuse cluster across safe test classes
                 Key: HDDS-12183
                 URL: https://issues.apache.org/jira/browse/HDDS-12183
             Project: Apache Ozone
          Issue Type: Sub-task
          Components: test
            Reporter: Attila Doroszlai
            Assignee: Attila Doroszlai


Cluster startup/shutdown is the most time-consuming part of the test for 
several classes.  Time breakdown by test case can be seen by setting 
{{-Dsurefire.reportFormat=plain}}.  For example, each test case in the 
following three classes is finished in sub-second time, but total execution 
time is 30+ seconds due to setup.

{code}
[INFO] Running org.apache.hadoop.hdds.scm.TestContainerSmallFile
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 36.557 s 
- in org.apache.hadoop.hdds.scm.TestContainerSmallFile
[INFO] org.apache.hadoop.hdds.scm.TestContainerSmallFile.testEcho  Time 
elapsed: 0.359 s
[INFO] org.apache.hadoop.hdds.scm.TestContainerSmallFile.testInvalidBlockRead  
Time elapsed: 0.104 s
[INFO] 
org.apache.hadoop.hdds.scm.TestContainerSmallFile.testInvalidContainerRead  
Time elapsed: 0.054 s
[INFO] org.apache.hadoop.hdds.scm.TestContainerSmallFile.testAllocateWrite  
Time elapsed: 0.028 s
[INFO] org.apache.hadoop.hdds.scm.TestContainerSmallFile.testReadWriteWithBCSId 
 Time elapsed: 0.064 s
[INFO] Running org.apache.hadoop.hdds.scm.TestAllocateContainer
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 36.778 s 
- in org.apache.hadoop.hdds.scm.TestAllocateContainer
[INFO] org.apache.hadoop.hdds.scm.TestAllocateContainer.testAllocate  Time 
elapsed: 0.239 s
[INFO] org.apache.hadoop.hdds.scm.TestAllocateContainer.testAllocateNull  Time 
elapsed: 0.002 s
[INFO] Running org.apache.hadoop.hdds.scm.TestSCMNodeManagerMXBean
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 35.891 s 
- in org.apache.hadoop.hdds.scm.TestSCMNodeManagerMXBean
[INFO] org.apache.hadoop.hdds.scm.TestSCMNodeManagerMXBean.testDiskUsage  Time 
elapsed: 0.055 s
[INFO] org.apache.hadoop.hdds.scm.TestSCMNodeManagerMXBean.testNodeCount  Time 
elapsed: 0.002 s
{code}

Safe integration tests (ones which do not stop / restart components) can be run 
on the same {{MiniOzoneCluster}} to save time.



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

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

Reply via email to