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

   ## What changes were proposed in this pull request?
   [S3G] ListObjectsV2 should accept maxKeys=0
   
   Please describe your PR in detail:
   
   - Optimized Key Processing: In BucketEndpoint.java
   , a check if (maxKeys > 0) is introduced to wrap the key processing loop. 
This avoids unnecessary iteration and immediately returns an empty result, 
improving efficiency for this specific use case.
   - Corrected Validation: The validation logic is adjusted to only reject 
negative values for max-keys, while correctly permitting 0.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-13447
   
   ## How was this patch tested?
   
   [CI Pass](url)
   


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