You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Jitendra Nath Pandey (JIRA)" <ji...@apache.org> on 2017/11/24 07:16:00 UTC

[jira] [Updated] (RATIS-155) TestSegmentedRaftLog and TestCacheEviction may fail due to NullPointerException

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

Jitendra Nath Pandey updated RATIS-155:
---------------------------------------
    Attachment: RAFT-155.1.patch

The .1 patch handles both cases where server is null or server.getId() is null so that developers implementing unit tests are not forced to always mock the Id when mocking the server.

> TestSegmentedRaftLog and TestCacheEviction may fail due to NullPointerException 
> --------------------------------------------------------------------------------
>
>                 Key: RATIS-155
>                 URL: https://issues.apache.org/jira/browse/RATIS-155
>             Project: Ratis
>          Issue Type: Bug
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Jitendra Nath Pandey
>         Attachments: RAFT-155.1.patch
>
>
> {code}
> 2017-11-23 16:30:44, 212 ERROR storage.RaftLogWorker (ExitUtils.java:terminate(86)) - Terminating with exit status 1: s0-RaftLogWorker failed.
> java.lang.NullPointerException
> 	at org.apache.ratis.server.storage.RaftLogWorker.lambda$new$0(RaftLogWorker.java:98)
> 	at org.apache.ratis.util.JavaUtils$1.get(JavaUtils.java:90)
> 	at org.apache.ratis.server.storage.RaftLogWorker.flushWrites(RaftLogWorker.java:219)
> 	at org.apache.ratis.server.storage.RaftLogWorker.access$500(RaftLogWorker.java:47)
> 	at org.apache.ratis.server.storage.RaftLogWorker$WriteLog.execute(RaftLogWorker.java:302)
> 	at org.apache.ratis.server.storage.RaftLogWorker.run(RaftLogWorker.java:174)
> 	at java.lang.Thread.run(Thread.java:748)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)