You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Aravindan Vijayan (Jira)" <ji...@apache.org> on 2022/05/19 05:05:00 UTC

[jira] [Assigned] (HDDS-6489) Unit test to check cleanup tables for each OM response

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

Aravindan Vijayan reassigned HDDS-6489:
---------------------------------------

    Assignee: Swaminathan Balachandran

> 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
>
> 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org