jojochuang commented on a change in pull request #2706:
URL: https://github.com/apache/ozone/pull/2706#discussion_r726726392
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OzoneManagerRatisServer.java
##########
@@ -281,9 +282,12 @@ private RaftClientReply submitRequestToRatis(
try {
return server.submitClientRequestAsync(raftClientRequest)
.get();
- } catch (Exception ex) {
+ } catch (ExecutionException | IOException ex) {
throw new ServiceException(ex.getMessage(), ex);
+ } catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
Review comment:
need to throw an exception here otherwise the caller of this method will
get an NPE.
--
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]