Pavel Tupitsyn created IGNITE-13226:
---------------------------------------
Summary: .NET: Thin Client Compute leaks ClientNotificationHandler
instances
Key: IGNITE-13226
URL: https://issues.apache.org/jira/browse/IGNITE-13226
Project: Ignite
Issue Type: Bug
Components: platforms
Affects Versions: 2.9
Reporter: Pavel Tupitsyn
Assignee: Pavel Tupitsyn
Fix For: 2.9
In multithreaded thin client compute scenarios there is a possibility for
ClientNotificationHandler leak: handlers remain in
ClientSocket._notificationListeners even after corresponding tasks have
completed.
To reproduce, add the following code at the end of
ComputeClientTests.TestExecuteJavaTaskAsyncMultithreaded:
{code}
var failoverSocket =
TestUtils.GetPrivateField<ClientFailoverSocket>(client, "_socket");
var socket =
TestUtils.GetPrivateField<ClientSocket>(failoverSocket, "_socket");
var listeners = TestUtils.GetPrivateField<ICollection>(socket,
"_notificationListeners");
Assert.IsEmpty(listeners);
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)