drriguz opened a new pull request, #693:
URL: https://github.com/apache/ratis/pull/693

   ## What changes were proposed in this pull request?
   
   In SegmentedRaftLogInputStream#init, the SegmentedRaftLogReader instance is 
not correctly closed if the log is corrupted. The LogSegment#readSegmentFile 
function will try to delete empty segment, however it may fail on Windows 
because previously it's not closed. 
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/RATIS-1634
   
   ## How was this patch tested?
   
   Already coverd in unit test 
ServerRestartTests#testRestartWithCorruptedLogHeader.


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

Reply via email to