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

   ## What changes were proposed in this pull request?
   
   OM now visits FSO subdirectories when a lifecycle expiration rule omits its 
prefix. Previously, the scan started at the bucket root but pruned every 
subdirectory unless a rule supplied a matching prefix. As a result, a Tag 
filter or an And filter with tags and no Prefix could expire matching keys at 
the root while leaving matching keys in subdirectories.
   
   The directory walk now treats an omitted prefix like an explicit empty 
prefix. This lets OM evaluate keys throughout the bucket. The existing rule 
matching still determines which keys and directories qualify for expiration.
   
   ## What is the link to the Apache JIRA
   
   [HDDS-17998](https://issues.apache.org/jira/browse/HDDS-17998)
   
   ## How was this patch tested?
   
   - Reproduced the bug with both a Tag filter and an And filter with an 
omitted prefix. Both cases failed before the fix and passed afterward. An And 
filter with an explicit empty prefix passed before and after the fix.
   - Verified that nonmatching keys and directories emptied by tag-based 
expiration are retained. Added coverage for mixed prefix and tag rules and for 
an empty filter with nested keys.
   - Ran the full TestKeyLifecycleService suite on JDK 21 with 385 passed, 19 
skipped, and zero failures. Checkstyle and git diff --check passed.


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