swamirishi opened a new pull request, #9382: URL: https://github.com/apache/ozone/pull/9382
## What changes were proposed in this pull request? Currently both background task and shutdown acquire a synchronized lock which can lead to a deadlock on shutdown which means the threadPool shutdown takes time unnecessarily. The synchronized block on task was taken to ensure there are no parallel tasks that run together. Introducing a semaphore with 1 would solve this issue. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-14020 ## How was this patch tested? Unit test in Defrag service finishes faster -- 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]
