[
https://issues.apache.org/jira/browse/RATIS-497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16790158#comment-16790158
]
Tsz Wo Nicholas Sze commented on RATIS-497:
-------------------------------------------
r497_20190311.patch:
- synchronizes life cycle state changes;
- adds auto-restart if a LogAppender ends up with EXCEPTION state;
- cleans up log messages.
Will see if I could add a test for the auto-restart.
> IllegalStateException: ILLEGAL TRANSITION: In LogAppender(s4 -> s1), CLOSING
> -> RUNNING
> ---------------------------------------------------------------------------------------
>
> Key: RATIS-497
> URL: https://issues.apache.org/jira/browse/RATIS-497
> Project: Ratis
> Issue Type: Bug
> Components: server, test
> Reporter: Tsz Wo Nicholas Sze
> Assignee: Tsz Wo Nicholas Sze
> Priority: Minor
> Attachments: r497_20190311.patch
>
>
> This bug happens when a LogAppender is started (startAppender()) and then
> immediately stopped (stopAppender()).
> This bug is not a problem in real application, since an uncaught exception
> with no harm will be thrown, but it will fail unit tests.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)