You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz Wo Nicholas Sze (JIRA)" <ji...@apache.org> on 2018/10/19 10:43:00 UTC

[jira] [Comment Edited] (RATIS-361) Fix the NPE bug in MemoryRaftLog

    [ https://issues.apache.org/jira/browse/RATIS-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16656612#comment-16656612 ] 

Tsz Wo Nicholas Sze edited comment on RATIS-361 at 10/19/18 10:42 AM:
----------------------------------------------------------------------

r361_20181019.patch: some code cleanup (not yet fixed the bug.)


was (Author: szetszwo):
r361_20181019.patch: some code cleanup.

> Fix the NPE bug in MemoryRaftLog
> --------------------------------
>
>                 Key: RATIS-361
>                 URL: https://issues.apache.org/jira/browse/RATIS-361
>             Project: Ratis
>          Issue Type: Bug
>          Components: server
>            Reporter: Tsz Wo Nicholas Sze
>            Priority: Major
>         Attachments: r361_20181019.patch
>
>
> As stated in the TODO in TestStateMachine.testTransactionContextIsPassedBack(), MemoryRaftLog may throw NPE.
> {code}
>     // TODO: fix and run with in-memory log. It fails with NPE
>     // TODO: if change setUseMemory to true
>     RaftServerConfigKeys.Log.setUseMemory(properties, false);
> {code}



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