adoroszlai commented on a change in pull request #414:
URL: https://github.com/apache/incubator-ratis/pull/414#discussion_r568514048
##########
File path:
ratis-server/src/main/java/org/apache/ratis/server/storage/RaftStorageImpl.java
##########
@@ -143,8 +143,10 @@ public RaftConfiguration readRaftConfiguration() {
try (FileInputStream fio = new FileInputStream(confFile)) {
LogEntryProto confProto =
LogEntryProto.newBuilder().mergeFrom(fio).build();
return LogProtoUtils.toRaftConfiguration(confProto);
+ } catch (FileNotFoundException e) {
+
+ return null;
} catch (Exception e) {
- LOG.error("Failed reading configuration from file:" + confFile, e);
return null;
Review comment:
I think we should keep the log for other exceptions, otherwise the two
`catch` blocks can be merged.
----------------------------------------------------------------
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]