sadanand48 opened a new pull request #3175: URL: https://github.com/apache/ozone/pull/3175
## What changes were proposed in this pull request? For fso buckets , a volume or a bucket delete via ofs calls OmDeleteKeysRequest which is a non FSO class. Therefore during deletion ,it looks into KeyTable instead of filetable and it get's no keys to delete. After this step , the bucket reference is also removed from the bucket table as this is a bucket delete . This leads to a state where even though keys exist , its bucket doesn’t exist and a list status would not return correct results. The fix here for bucket deletion in FSO case is to iterate through all top level objects( dirs and files) and do a delete of each of those dirs(recursive) and files. Also added some assertions to prevent FSO calls into non-fso classes. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-6414 ## How was this patch tested? Unit tests -- 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]
