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

[jira] [Updated] (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 ]

Ethan Rose updated HDDS-6489:
-----------------------------
    Description: 
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.

  was:
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.


> 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
>            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.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org