You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Kit Hui (JIRA)" <ji...@apache.org> on 2018/04/20 14:15:00 UTC
[jira] [Commented] (RATIS-228) Handle zero size log_inprogress file
[ https://issues.apache.org/jira/browse/RATIS-228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16445777#comment-16445777 ]
Kit Hui commented on RATIS-228:
-------------------------------
a new patch uploaded. Thanks
> 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: Major
> Attachments: r228_20180420.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)