sadanand48 opened a new pull request, #9786: URL: https://github.com/apache/ozone/pull/9786
## What changes were proposed in this pull request? When a purged snapshot’s YAML is deleted (all versions removed), the orphan check can still schedule that snapshot again. The next run then tries to load the missing YAML and throws NoSuchFileException. Root cause: In checkForOphanVersionsAndIncrementCount, we always call incrementOrphanCheckCount(snapshotId) when isPurgeTransactionSet or the version changes, even if the YAML was just deleted (empty versions). That keeps the snapshot in snapshotToBeCheckedForOrphans even though there is nothing left to check. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-14654 ## How was this patch tested? Unit test added -- 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]
