[
https://issues.apache.org/jira/browse/IGNITE-22998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17875046#comment-17875046
]
Semyon Zikunov edited comment on IGNITE-22998 at 8/20/24 5:49 AM:
------------------------------------------------------------------
Failed tests:
testLongIndexDeletionCheckWhenOneNodeStopped
testLongIndexDeletionCheckWhenOneNodeStoppedAndDropIndex
testLongIndexDeletionSimple
testLongIndexDeletionWithRebalance
testLongIndexDeletionWithRestart
testLongMulticolumnIndexDeletion
ClassCast creating in this line:
ValidateIndexesTaskResult taskRes =
ignite.compute().execute(ValidateIndexesTask.class.getName(), new
VisorTaskArgument<>(nodeIds, taskArg, false));
To fix it, you need to use:
ValidateIndexesTaskResult taskRes =
ignite.compute().execute(new ValidateIndexesTask(), new
VisorTaskArgument<>(nodeIds, taskArg, false)).result();
was (Author: JIRAUSER303459):
ClassCast creating in this line:
ValidateIndexesTaskResult taskRes =
ignite.compute().execute(ValidateIndexesTask.class.getName(), new
VisorTaskArgument<>(nodeIds, taskArg, false));
To fix it, you need to use:
ValidateIndexesTaskResult taskRes =
ignite.compute().execute(new ValidateIndexesTask(), new
VisorTaskArgument<>(nodeIds, taskArg, false)).result();
> Fix LongDestroyDurableBackgroundTaskTest ClassCastException
> -----------------------------------------------------------
>
> Key: IGNITE-22998
> URL: https://issues.apache.org/jira/browse/IGNITE-22998
> Project: Ignite
> Issue Type: Test
> Reporter: Semyon Zikunov
> Assignee: Semyon Zikunov
> Priority: Trivial
> Labels: ise
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Six tests from the PDS (indexing) group fall by one error:
> {code:java}
> ------- Stdout: ------- java.lang.ClassCastException: class
> org.apache.ignite.internal.visor.VisorTaskResult cannot be cast to class
> org.apache.ignite.internal.management.cache.ValidateIndexesTaskResult
> (org.apache.ignite.internal.visor.VisorTaskResult and
> org.apache.ignite.internal.management.cache.ValidateIndexesTaskResult are in
> unnamed module of loader org.apache.maven.surefire.booter.IsolatedClassLoader
> @2b2954e1) at
> org.apache.ignite.internal.processors.cache.persistence.db.LongDestroyDurableBackgroundTaskTest.validateIndexes(LongDestroyDurableBackgroundTaskTest.java:379)
> at
> org.apache.ignite.internal.processors.cache.persistence.db.LongDestroyDurableBackgroundTaskTest.testLongIndexDeletion(LongDestroyDurableBackgroundTaskTest.java:339)
> at
> org.apache.ignite.internal.processors.cache.persistence.db.LongDestroyDurableBackgroundTaskTest.testLongIndexDeletionCheckWhenOneNodeStopped(LongDestroyDurableBackgroundTaskTest.java:674)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method) at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:568) 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:2499)
> at java.base/java.lang.Thread.run(Thread.java:833){code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)