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

Mikhail Petrov updated IGNITE-15126:
------------------------------------
    Labels: ise  (was: )

> Cluster hangs when error is thrown on activation 
> -------------------------------------------------
>
>                 Key: IGNITE-15126
>                 URL: https://issues.apache.org/jira/browse/IGNITE-15126
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Aleksey Plekhanov
>            Assignee: Mikhail Petrov
>            Priority: Major
>              Labels: ise
>
> When an error occurs on cluster activation (In methodsĀ 
> {{IgniteChangeGlobalStateSupport.onActivate()}}) state-change process hangs 
> (stay in "in transition" state) and switches the cluster to an inoperable 
> state even if the problematic node is stopped by the failure handler.
> Reproducer:
> {code:java}
> public class ErrorOnActivationTest extends GridCommonAbstractTest {
>     @Override protected IgniteConfiguration getConfiguration(String 
> igniteInstanceName) throws Exception {
>         return 
> super.getConfiguration(igniteInstanceName).setFailureHandler(new 
> StopNodeFailureHandler())
>             .setClusterStateOnStart(ClusterState.INACTIVE);
>     }
>     @Test
>     public void testErrorOnActivation() throws Exception {
>         Ignite ignite = startGrid(getConfiguration("test1"));
>         startGrid(getConfiguration("test2"))
>             
> .context().internalSubscriptionProcessor().registerDatabaseListener(
>                 new DatabaseLifecycleListener() {
>                     @Override public void 
> afterInitialise(IgniteCacheDatabaseSharedManager mgr) throws 
> IgniteCheckedException {
>                         throw new IgniteCheckedException("Test");
>                     }
>                 }
>             );
>         ignite.cluster().state(ClusterState.ACTIVE);
>         startClientGrid(); // Hangs here.
>     }
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to