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

Siddharth Wagle updated RATIS-579:
----------------------------------
    Attachment: RATIS-579.04.patch

> ExitUtils.terminate results in JVM terminated for peers not part of the group
> -----------------------------------------------------------------------------
>
>                 Key: RATIS-579
>                 URL: https://issues.apache.org/jira/browse/RATIS-579
>             Project: Ratis
>          Issue Type: Bug
>          Components: raft-group, server
>    Affects Versions: 0.4.0
>            Reporter: Siddharth Wagle
>            Assignee: Siddharth Wagle
>            Priority: Major
>         Attachments: RATIS-579.01.patch, RATIS-579.02.patch, 
> RATIS-579.03.patch, RATIS-579.04.patch
>
>
> ExitUtils.terminate is called for several different scenarios. In a 
> multi-raft scenario, this would result in JVM shutdown and renders all groups 
> unusable.
> Stacktrace:
> {code}
> 2019-05-21 23:26:52,692 ERROR org.apache.ratis.util.ExitUtils: Terminating 
> with exit status -1: 
> Thread[64008f18-c6d8-4c99-a116-9b772e8c4953:group-D6E12D98D556:LeaderElection
> 2450,5,main] has thrown an uncaught exception
> java.lang.IllegalStateException: ILLEGAL TRANSITION: In 
> 64008f18-c6d8-4c99-a116-9b772e8c4953:group-D6E12D98D556:LeaderElection2450, 
> RUNNING -> CLOSED
>         at 
> org.apache.ratis.util.Preconditions.assertTrue(Preconditions.java:60)
>         at org.apache.ratis.util.LifeCycle$State.validate(LifeCycle.java:123)
>         at org.apache.ratis.util.LifeCycle.transition(LifeCycle.java:143)
>         at 
> org.apache.ratis.server.impl.LeaderElection.run(LeaderElection.java:154)
>         at java.lang.Thread.run(Thread.java:748)
> {code}



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

Reply via email to