You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vyacheslav Daradur (JIRA)" <ji...@apache.org> on 2019/01/11 09:33:00 UTC
[jira] [Commented] (IGNITE-10888) .NET:
ServicesTest.TestGetServiceProxy(False) became flaky with high fail rate
[ https://issues.apache.org/jira/browse/IGNITE-10888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16740211#comment-16740211 ]
Vyacheslav Daradur commented on IGNITE-10888:
---------------------------------------------
*Summary:*
In the .NET tests is checked that {{Service#execute}} has been called during deployment. This check is possible because of {{UnmanagedCallbacks.cs}} registered and called for services deployed from .Net client. See for details {{PlatformCallbackGateway.java, PlatformAbstractService.java}} for details.
But API (Service interface) does not guarantee the execution of {{Service#execute}} once deployment process is finished, the only guarantee is the execution of {{Service#init}}.
The test became flaky because of speedup deployment after IGNITE-9607, also {{Services#GetServiceDescriptors()}} became faster because of access to a local variable instead of distributed selection. That means sometimes callback has not been called before the check, it confirms with the fact that {{Assert.IsTrue(prx.Initialized)}} passes well all the times.
There are 2 options to fix the test:
1. Remove the check {{Assert.IsTrue(prx.Executed)}} because of lack guarantees
2. Introduce timeout to wait of the method's execution
> .NET: ServicesTest.TestGetServiceProxy(False) became flaky with high fail rate
> -------------------------------------------------------------------------------
>
> Key: IGNITE-10888
> URL: https://issues.apache.org/jira/browse/IGNITE-10888
> Project: Ignite
> Issue Type: Task
> Components: managed services, platforms
> Affects Versions: 2.7
> Reporter: Vyacheslav Daradur
> Assignee: Vyacheslav Daradur
> Priority: Major
> Labels: MakeTeamcityGreenAgain, Muted_test
> Fix For: 2.8
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Looks like {{ServicesTest.TestGetServiceProxy(False)}} became flaky after IGNITE-9607.
> The problem is in a flag "executed" of platforms proxy. Need to investigate a reason.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)