Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-7958

Unable to unregister keys in C# (???)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: native client
    • Labels:
      None

      Description

      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:

      Assert.Equal(stillInterested.Count, 0); 

      fails with stillInterested.Count == 1, so the key registered was not unregistered successfully.  Additionally, this assert on line 135:

      Assert.Equal(listener.UpdateCount, 3); 

      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.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bbender Blake Bender
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: