szetszwo commented on PR #4572:
URL: https://github.com/apache/ozone/pull/4572#issuecomment-1541321938

   > If the array is not dynamically expandable, we need to create an array of 
size 10000 directly, because we need to add the new PartkeyInfo to the array 
each time we execute CommitMultiupload, We don't know in advance which "parts" 
will be added. ...
   
   That's why we need to build a TreeMap first.  Then, we know the size.
   > ... simply (1) build a TreeMap, (2) copy the result to a sorted 
(immutable) list, ...


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