Found deadlocks at openMRS hibernate search after profiling Bahmni lite

Hi People, We successfully profiled the Bahmni lite application through a profiler and found the tool reporting us these deadlocks present under openMRS. Any suggestions to investigate and resolve these deadlocks are welcome!

OpenMRS_BahmniDeadlock.txt (13.1 KB)

cc: @n0man @gsluthra @angshuonline @binduak

Hi People , we are getting this deadlock in Hibernate search ,The attached text file has the stack trace, Any recommendations to avoid this deadlock , would be helpful , Thanks @raff @ibacher