socutes commented on a change in pull request #10749:
URL: https://github.com/apache/kafka/pull/10749#discussion_r638536001
##########
File path: raft/src/main/java/org/apache/kafka/raft/FileBasedStateStore.java
##########
@@ -91,14 +92,17 @@ private QuorumStateData readStateFromFile(File file) throws
IOException {
final short dataVersion = dataVersionNode.shortValue();
return QuorumStateDataJsonConverter.read(dataObject, dataVersion);
+ } catch (IOException e) {
+ throw new UncheckedIOException(
+ String.format("Error while reading the Quorum status from
the file %s",file),e);
Review comment:
Sorry, the code format problem, will pay attention later, this time
rushed submission
--
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]