aswinshakil commented on PR #5968: URL: https://github.com/apache/ozone/pull/5968#issuecomment-1885880972
Thanks for fixing this @hemantk-12. There can still be a case where this can result in a deadlock. For example, At time`t0` Thread 1 -> Acquires lock for `snap1` At time`t0` Thread 2 -> Acquires lock for `snap2` Now both the threads are doing the `cleanup()`, We may end up in a scenario. At time `t1` Thread 1 -> Waiting for lock `snap2` At time `t1` Thread 2 -> Waiting for lock `snap1` Let me know if this is possible. -- 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]
