[
https://issues.apache.org/jira/browse/IGNITE-23731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vadim Pakhnushev reassigned IGNITE-23731:
-----------------------------------------
Assignee: Vadim Pakhnushev
> IgniteCompute test with deployed jar is failed
> ----------------------------------------------
>
> Key: IGNITE-23731
> URL: https://issues.apache.org/jira/browse/IGNITE-23731
> Project: Ignite
> Issue Type: Bug
> Components: compute
> Affects Versions: 3.0.0-beta1
> Reporter: Evgeny Stanilovsky
> Assignee: Vadim Pakhnushev
> Priority: Major
> Labels: ignite-3
>
> I found that most compute tests are waits for some execution state, but it`s
> valid situation when someone call compute and immediately after - cancel,
> such case is broken in our tests.
> if we put below code into ItComputeTestStandalone it will raise error
>
> {code:java}
> @ParameterizedTest
> @ValueSource(booleans = {true, false})
> void cancelsJob(boolean local) {
> Ignite entryNode = node(0);
> Ignite executeNode = local ? node(0) : node(1);
> // This job catches the interruption and throws a RuntimeException
> JobDescriptor<Long, Void> job =
> JobDescriptor.builder(SleepJob.class).units(units()).build();
> JobExecution<Void> execution =
> entryNode.compute().submit(JobTarget.node(clusterNode(executeNode)), job,
> Long.MAX_VALUE);
> execution.cancelAsync();
> }
> {code}
> error:
> {noformat}
> org.awaitility.core.ConditionTimeoutException: Lambda expression in
> org.apache.ignite.internal.compute.ItComputeTestStandalone: expected null but
> was <REMOVING> within 10 seconds.
> at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
> at
> org.awaitility.core.AbstractHamcrestCondition.await(AbstractHamcrestCondition.java:86)
> at
> org.awaitility.core.ConditionFactory.until(ConditionFactory.java:1006)
> at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:712)
> at
> org.apache.ignite.internal.compute.ItComputeTestStandalone.undeploy(ItComputeTestStandalone.java:74)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)