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

   ## What changes were proposed in this pull request?
   `KeyLifecycleService.processMultipartUploads` iterated every MPU in a bucket 
and immediately called `OMMultipartUploadUtils.getMultipartOpenKey` plus 
`openKeyTable.get(...)` before evaluating age or prefix. On buckets
   with many active uploads this wasted one key-format resolution and one 
RocksDB read per MPU, most of which would have been eliminated by the 
age/prefix check.
   
   Additionally, "orphan" MPUs entries present in `multipartInfoTable` butwhose 
`openKeyTable` entry was already removed (e.g. by the old 
`OpenKeyCleanupService` before HDDS-9017) were logged as a WARN and skipped 
entirely, causing them to accumulate in the table forever even when a lifecycle 
rule plainly covered them.
   
   ## What is the link to the Apache JIRA
   
   HDDS-16089
   
   ## How was this patch tested?
   
   Two new integration tests created by claude is added to 
`TestKeyLifecycleService.Normal`
   
   | Test | What it verifies |
   |---|---|
   | `testOrphanMpuAbortedByAgeAndPrefixRule` | Orphan MPU is aborted alongside 
a normal MPU when a prefix-only rule matches |
   | `testOrphanMpuNotAbortedByTagOnlyRule` | Orphan MPU is left untouched when 
the only applicable rule requires a tag filter |


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