[ 
https://issues.apache.org/jira/browse/HDDS-6489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated HDDS-6489:
---------------------------------
    Labels: newbie pull-request-available  (was: newbie)

> Unit test to check cleanup tables for each OM response
> ------------------------------------------------------
>
>                 Key: HDDS-6489
>                 URL: https://issues.apache.org/jira/browse/HDDS-6489
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: Ozone Manager
>            Reporter: Ethan Rose
>            Assignee: Swaminathan Balachandran
>            Priority: Minor
>              Labels: newbie, pull-request-available
>
> OM response classes need to declare the tables they act on in the 
> @CleanupTableInfo annotation. Sometimes when responses are updated with new 
> tables, this annotation is not also updated, as seen in HDDS-6480. This Jira 
> proposes adding a unit test to the existing TestCleanupTableInfo class that 
> would:
> 1. Use reflection to identify all the OM responses.
>     - An example of this is already in the existing unit test.
> 2. Call addToDBBatch for each response with a mock OMMetadataManager instance.
> 3. Check that the list of tables accessed in the mock match the list of 
> tables in the response's annotation.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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

Reply via email to