You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Blake Bender (Jira)" <ji...@apache.org> on 2020/04/06 21:09:00 UTC
[jira] [Created] (GEODE-7958) Unable to unregister keys in C# (???)
Blake Bender created GEODE-7958:
-----------------------------------
Summary: Unable to unregister keys in C# (???)
Key: GEODE-7958
URL: https://issues.apache.org/jira/browse/GEODE-7958
Project: Geode
Issue Type: Bug
Components: native client
Reporter: Blake Bender
See [https://stackoverflow.com/questions/59986098/unregisterkeys-method-not-executing-in-apache-geode-native-client]. This appears to be specific to C#, which is _very_ strange.
The branch [https://github.com/pdxcodemonkey/geode-native/tree/registerkeys_stackoverflow_question] contains a test case in /clicache/integration-test2/RegisterKeysTest.cs called RegisterUnregisterAndTest that demonstrates the bug. This assert on line 127:
{code:java}
Assert.Equal(stillInterested.Count, 0); {code}
fails with stillInterested.Count == 1, so the key registered was not unregistered successfully. Additionally, this assert on line 135:
{code:java}
Assert.Equal(listener.UpdateCount, 3); {code}
fails after updating the value associated with the registered key again, so not only does the client think the key is still registered, it is still sending notifications for the key.
Repro:
i. On a Windows machine, checkout the branch above and build the native client
ii. Run RegisterKeysTest.RegisterUnregisterAndTest in /clicache/integration-test2
Expected result:
test passes
Actual result:
test fails on the two asserts described above.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)