Ethan Rose created HDDS-6489:
--------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]