[ 
https://issues.apache.org/jira/browse/RATIS-228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kit Hui updated RATIS-228:
--------------------------
    Attachment: r228_20180424.patch

> Handle zero size log_inprogress file
> ------------------------------------
>
>                 Key: RATIS-228
>                 URL: https://issues.apache.org/jira/browse/RATIS-228
>             Project: Ratis
>          Issue Type: Bug
>            Reporter: Kit Hui
>            Assignee: Kit Hui
>            Priority: Blocker
>         Attachments: r228_20180420.patch, r228_20180424.patch
>
>
> When debugging RATIS-227, test may fail with
> {code}
> 2018-04-19 12:39:39,527 ERROR 
> storage.LogInputStream(LogInputStream.java:nextEntry(122)) - caught exception 
> initializing log_inprogress_0
> java.io.EOFException: EOF before reading a complete log header
> at org.apache.ratis.server.storage.LogReader.readLogHeader(LogReader.java:140)
> at org.apache.ratis.server.storage.LogInputStream.init(LogInputStream.java:92)
> at 
> org.apache.ratis.server.storage.LogInputStream.nextEntry(LogInputStream.java:120)
> at 
> org.apache.ratis.server.storage.LogSegment.readSegmentFile(LogSegment.java:107)
> at org.apache.ratis.server.storage.LogSegment.loadSegment(LogSegment.java:129)
> ...
> {code}
> It turns out that the log_inprogress_0 file is zero size



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to