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

   ## What changes were proposed in this pull request?
   
   OBS object names can start with /, but OM treated a lone / in a listing 
prefix or marker as the bucket root. As a result, StartAfter=/ could return 
keys that sort before /, and Prefix=/ could scan unrelated keys. Shallow 
listing also interpreted object names as filesystem paths, which could strip 
leading slashes when building common prefixes.
   
   This patch uses literal OBS key names for listing bounds and shallow 
grouping. OM seeks past the remaining descendants once a live key establishes a 
common prefix. A cache deletion marker does not hide a common prefix backed by 
another live key. The patch also preserves the existing ListObjects V1 and 
ListObjectVersions marker behavior.
   
   ## What is the link to the Apache JIRA
   
   [HDDS-17874](https://issues.apache.org/jira/browse/HDDS-17874)
   
   ## How was this patch tested?
   
   - Ran 57 OM unit tests covering slash prefixes, exclusive start markers, 
shallow listing, and cache deletion markers. All passed.
   - Ran all 45 TestBucketList tests, including the V1 and ListObjectVersions 
marker assertions. All passed.
   - Ran the TestS3SDK suite. The listing regressions passed, including the 
case where the final common prefix fills a page without producing a 
continuation token. Overall, 209 of 210 tests passed. 
testGetLifecycleWithAbortIncompleteMultipartUpload returned HTTP 500.
   - Ran Checkstyle and git diff --check. Both 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