swamirishi opened a new pull request, #9390: URL: https://github.com/apache/ozone/pull/9390
## 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. This patch removes the unnecessary synchronized calls and converts the ThreadPoolExecutor to a fork join pool. Instead of hacking around with the wait logic present at the start of a periodic task to avoid deadlock in case of a single threaded background service we can use a forkJoin pool to fork on to background and task and join all the forked task to implement the wait. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-14020 ## How was this patch tested? Existing tests should be sufficient -- 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]
