Attila Doroszlai created HDDS-10090:
---------------------------------------

             Summary: Clean up TestStorageContainerManager
                 Key: HDDS-10090
                 URL: https://issues.apache.org/jira/browse/HDDS-10090
             Project: Apache Ozone
          Issue Type: Task
          Components: test
            Reporter: Attila Doroszlai
            Assignee: Attila Doroszlai


{{TestStorageContainerManager}} has some items to be cleaned up:

 * Disabled test cases related to non-HA to HA change.  This used to be not 
supported scenario, but was recently implemented in HDDS-9897.  Since that task 
also added a new test case, {{testSCMReinitializationWithHAEnabled}} and 
{{testSCMReinitializationWithHAUpgrade}} can be removed now.
 * Test cases can now use {{MiniOzoneCluster}} wrapped in 
{{try-with-resources}} blocks to ensure the cluster is shut down even if 
{{waitForClusterToBeReady()}} and other operations fail.
 * {{Thread.currentThread().sleep()}} can be replaced with {{Thread.sleep()}}.
 * Convert {{try-catch}} blocks to {{assertThrows()}} where applicable (where 
exception is expected and {{try}} block calls {{fail()}}.



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