guihecheng edited a comment on pull request #477:
URL: https://github.com/apache/ratis/pull/477#issuecomment-838450149


   @szetszwo oh, sorry for the style problem, will fix it.
   And for the ut case, I should handle the exception path properly. 
   Originally, it should get an `OverlappingFileLockException` followed/wrapped 
by an `IOException`, and they will not match 'AccessDeniedException' and will 
be thrown inside the loop.
   For now, the second `IOException` is caught and handled, and we throw a new 
`IOException` outside the loop.
   I tried to keep the test logic and throw the specific exception.


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to