Aleksey Plekhanov created IGNITE-15126:
------------------------------------------

             Summary: 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


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.3.4#803005)

Reply via email to