ivandika3 opened a new pull request, #8732: URL: https://github.com/apache/ozone/pull/8732
We need to ensure that abstract OM response class should NOT have CleanupTableInfo annotation since the OM response subclass CleanupTableInfo annotation values will override the parent CleanupTableInfo. The abstract class @CleanupTableInfo will tempt contributors to exclude it in the CleanupTableInfo of the subclasses. It is also difficult to keep track the inheritance if we have more than one level of subclasses (e.g. OMKeyCreateResponseWithFSO extends OMFileCreateResponseWithFSO extends OMFileCreateResponse) Currently we have these abstract classes: AbstractS3MultipartAbortResponse AbstractOMKeyDeleteResponse We can push the CleanupTableInfo of these abstract classes to the all the sub concrete classes. After we need to validate by tests to prevent adding the annotation on abstract classes. Alternatively, we can make OMClientResponse to have CleanupTableInfo with cleanupAll enabled to ensure that OM response without CleanupTableInfo will cleanup the cache entries. However, this might cause noticeable overhead since the OM response needs to traverse the class hierarchy to find the first parent with CleanupTableInfo interface as well as needing to check all the OM tables. This also fixes the missing `BUCKET_TABLE` CleanupTable in `S3MultipartUploadAbortResponseWithFSO`. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-13362 ## How was this patch tested? Unit test in `TestCleanupTableInfo`. Clean CI: https://github.com/ivandika3/ozone/actions/runs/16040129826 -- 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]
