anujmodi2021 commented on PR #6409:
URL: https://github.com/apache/hadoop/pull/6409#issuecomment-2031631438

   > how does the pagination work here? do repeated calls need to be made? if 
so, where is this done? it wasn't immediately obvious to me.
   
   Paginated delete will work somehow similar to how recursive delete works for 
FNS accounts.
   
   For HNS Accounts, recursive delete is supposed to be a O(1) operation i.e 
deleting the folder itself. But before deleting the whole folder, server needs 
to do ACL checks on all the children of that folder which is not O(1). If the 
directory is large, this ACL check can take some time and request can timeout. 
To avoid this, server will return a continuation token if ACL check is still 
pending. Client need to loop delete on this continuation token similar to how 
it loop delete for FNS account recursive delete.
   
   Difference is that for FNS every call does delete some objects, in HNS it 
only performs ACL checks and actual delete of directory happens on last delete 
call of loop.
   
   Hope that explains.
   
   Repeated calls are made in abfsStore.deletePath() where continuation token 
check is present. This is common code for FNS and HNS.


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