[
https://issues.apache.org/jira/browse/IGNITE-19319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maksim Timonin updated IGNITE-19319:
------------------------------------
Description:
If run this code it sometimes fails with error that cluster is inactive. This
error raises on the same node that initiates cluster activation. This case
should not exist: activation method should return after at least local node has
completely changed the state.
Let's check code of activation for a bug, or code of snapshot restoring to
verify the check.
{code:java}
ign.cluster().state(ClusterState.ACTIVE);
ign.snapshot().restoreSnapshot("SNP", null).get();{code}
Error:
{code:java}
class org.apache.ignite.IgniteException: Cache group restore operation was
rejected. The cluster should be active.
at
org.apache.ignite.internal.processors.cache.persistence.snapshot.SnapshotRestoreProcess.start(SnapshotRestoreProcess.java:281)
at
org.apache.ignite.internal.processors.cache.persistence.snapshot.IgniteSnapshotManager.restoreSnapshot(IgniteSnapshotManager.java:2349)
at
org.apache.ignite.internal.processors.cache.persistence.snapshot.IgniteSnapshotManager.restoreSnapshot(IgniteSnapshotManager.java:2300)
at org.apache.ignite.CacheDestroyTest.test(CacheDestroyTest.java:56)
at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at
org.apache.ignite.testframework.junits.GridAbstractTest$6.run(GridAbstractTest.java:2504)
at java.lang.Thread.run(Thread.java:750)
{code}
was:
If run this code it sometimes fails with error that cluster is inactive. This
error raises on the same node that initiates cluster activation. This case
should not exist: activation method should return after at least local node has
changed the state.
Let's check code of activation for a bug, or code of snapshot restoring to
verify the check.
{code:java}
ign.cluster().state(ClusterState.ACTIVE);
ign.snapshot().restoreSnapshot("SNP", null).get();{code}
Error:
{code:java}
class org.apache.ignite.IgniteException: Cache group restore operation was
rejected. The cluster should be active.
at
org.apache.ignite.internal.processors.cache.persistence.snapshot.SnapshotRestoreProcess.start(SnapshotRestoreProcess.java:281)
at
org.apache.ignite.internal.processors.cache.persistence.snapshot.IgniteSnapshotManager.restoreSnapshot(IgniteSnapshotManager.java:2349)
at
org.apache.ignite.internal.processors.cache.persistence.snapshot.IgniteSnapshotManager.restoreSnapshot(IgniteSnapshotManager.java:2300)
at org.apache.ignite.CacheDestroyTest.test(CacheDestroyTest.java:56)
at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at
org.apache.ignite.testframework.junits.GridAbstractTest$6.run(GridAbstractTest.java:2504)
at java.lang.Thread.run(Thread.java:750)
{code}
> Cluster is still inactive after changing state
> ----------------------------------------------
>
> Key: IGNITE-19319
> URL: https://issues.apache.org/jira/browse/IGNITE-19319
> Project: Ignite
> Issue Type: Bug
> Reporter: Maksim Timonin
> Priority: Major
>
>
> If run this code it sometimes fails with error that cluster is inactive. This
> error raises on the same node that initiates cluster activation. This case
> should not exist: activation method should return after at least local node
> has completely changed the state.
> Let's check code of activation for a bug, or code of snapshot restoring to
> verify the check.
>
> {code:java}
> ign.cluster().state(ClusterState.ACTIVE);
> ign.snapshot().restoreSnapshot("SNP", null).get();{code}
> Error:
> {code:java}
> class org.apache.ignite.IgniteException: Cache group restore operation was
> rejected. The cluster should be active.
> at
> org.apache.ignite.internal.processors.cache.persistence.snapshot.SnapshotRestoreProcess.start(SnapshotRestoreProcess.java:281)
> at
> org.apache.ignite.internal.processors.cache.persistence.snapshot.IgniteSnapshotManager.restoreSnapshot(IgniteSnapshotManager.java:2349)
> at
> org.apache.ignite.internal.processors.cache.persistence.snapshot.IgniteSnapshotManager.restoreSnapshot(IgniteSnapshotManager.java:2300)
> at org.apache.ignite.CacheDestroyTest.test(CacheDestroyTest.java:56)
> at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at
> org.apache.ignite.testframework.junits.GridAbstractTest$6.run(GridAbstractTest.java:2504)
> at java.lang.Thread.run(Thread.java:750)
>
> {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)