slfan1989 commented on PR #4438:
URL: https://github.com/apache/hadoop/pull/4438#issuecomment-1155921035

   @MingXiangLi @ZanderXu Thanks for helping to review the code, can I make the 
following changes?
   
   ```
   public void lockLeakCheck() throws Exception {
       if (!openLockTrace) {
         LOG.warn("not open lock leak check func");
         return;
       }
       if (threadCountMap.isEmpty()) {
         LOG.warn("all lock has release");
         return;
       }
       setLastException(new Exception("lock Leak"));
       threadCountMap.forEach((name, trackLog) -> trackLog.showLockMessage());
       // throw exception ?
       throw new Exception("lock Leak");
     }
   ```


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