aryangupta1998 opened a new pull request, #11021:
URL: https://github.com/apache/ozone/pull/11021

   ## What changes were proposed in this pull request?
   
   When lifecycle expiration is configured to move expired keys to trash, 
KeyLifecycleService currently clears the pending key list even if moveToTrash 
fails. It can then save lifecycle scan state past those keys, so the failed 
keys are not retried until a later full scan.
   
   We should avoid marking failed trash moves as processed. If moving expired 
keys or directories to trash fails, the lifecycle task should fail for that 
bucket without saving scan state past the failed entries. The next lifecycle 
run can then retry them from the previous scan position.
   
   **Benefits**
   Preserves trash semantics: keys are not directly deleted when trash move 
fails.
   Prevents lifecycle from silently skipping expired keys.
   Retries failed keys sooner, instead of waiting for a full bucket scan to 
complete.
   Keeps scan state accurate: only successfully handled entries are marked as 
progress.
   
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-16162
   
   ## How was this patch tested?
   
   Tested Manually.
   


-- 
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]

Reply via email to