ArafatKhan2198 opened a new pull request, #5273: URL: https://github.com/apache/ozone/pull/5273
## What changes were proposed in this pull request? The structure of **`TestNSSummaryTaskWithLegacy`** is nested, with separate inner classes for each "process" and "reprocess" scenario. This differs from the design of other test classes, such as **`TestFileSizeCountTask`**, **`TestContainerSizeCountTask`**, and **`TestContainerKeyMapperTask`**, which consolidate these scenarios for the sake of code simplicity. As a result of this nested structure, the inner classes rely on the setup method of the outer class. This creates a problem because, due to its dependencies on other test classes, it cannot execute independently. Consequently, a NullPointerException (NPE) error occurs because some instances are not properly initialized. To address this issue, we have considered refactoring the class to follow a pattern similar to other test classes that are not nested, thereby eliminating the dependency on the outer class's setup method. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-9252 ## How was this patch tested? The test cases passed correctly -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
