xichen01 commented on PR #9185:
URL: https://github.com/apache/ozone/pull/9185#issuecomment-3448715183

   `SCMBlockDeletingService` holds a lock during execution, allowing other 
threads time to update the database.
   
   If the current `SCMBlockDeletingService` execution time exceeds the 
`BackgroundService` interval (60 seconds by default) for various reasons, 
`SCMBlockDeletingService`  will immediately execute the next scan, making it 
difficult for other threads to obtain `DeletedBlockLogImpl#lock` to update the 
DB.
   
   Therefore, "fixed delay" is more suitable for `SCMBlockDeletingService`. 
This way, regardless of the execution time of `SCMBlockDeletingService`, 
`SCMBlockDeletingService` will wait for the next execution after the interval.


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