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

   ## What changes were proposed in this pull request?
   
   In case of resetDeletedBlockRetryCount with --all option, scm takes 
[lock](https://github.com/apache/ozone/blob/12419fae1f0418793d952227364b04f1d2c3583b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/block/DeletedBlockLogImpl.java#L126)
 and tries to get all the transaction with max retry and then updates DB with 0 
count. In some large scale env this count can be huge which can lead to 
multiple problem.
   
   i) Lock can lead to block all other normal operation.
   
   ii) Since message is passed through ratis, which will fail because of size.
   
   Instead of doing like above we should do this operation in batches to avoid 
long lock and ratis message size failure.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-11714
   
   ## How was this patch tested?
   
   Tested Manually.
   


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