Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-14826

.NET: Thin client fails to compute hash code for string and array keys

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.11
    • platforms, thin client
    • .NET: Fixed string and array cache keys handling when partition awareness is enabled
    • Release Notes Required

    Description

      String keys are not supported in BinaryHashCodeUtils. The following code throws "Failed to compute hash code for object" exception:

                  var server = Ignition.Start();
      
                  var client = Ignition.StartClient(new IgniteClientConfiguration
                  {
                      Endpoints = new[] {"127.0.0.1"},
                      EnablePartitionAwareness = true
                  });
      
                  var cache = client.CreateCache<string, string>("c");
                  cache.Put("hello", "world");
      

      Attachments

        Issue Links

          Activity

            People

              ptupitsyn Pavel Tupitsyn
              ptupitsyn Pavel Tupitsyn
              Igor Sapego Igor Sapego
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m