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

Thin client is unable to get affinity mapping in some cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8
    • thin client

    Description

      Reproducer test for C++:

      BOOST_AUTO_TEST_CASE(CacheClientDefaultDynamicCacheThreeNodes)
      {
          StartNode("node1");
          StartNode("node2");
      
          IgniteClientConfiguration cfg;
          cfg.SetEndPoints("127.0.0.1:11110..11120");
      
          IgniteClient client = IgniteClient::Start(cfg);
      
          cache::CacheClient<std::string, int64_t> cache =
              client.CreateCache<std::string, int64_t>("defaultdynamic3");
      
          cache.RefreshAffinityMapping();
      
          for (int64_t i = 1; i < 1000; ++i)
              cache.Put(ignite::common::LexicalCast<std::string>(i * 39916801), i * 5039);
      
          for (int64_t i = 1; i < 1000; ++i)
          {
              int64_t val;
              LocalPeek(cache, ignite::common::LexicalCast<std::string>(i * 39916801), val);
      
              BOOST_CHECK_EQUAL(val, i * 5039);
          }
      }
      

      Attachments

        Issue Links

          Activity

            People

              isapego Igor Sapego
              isapego Igor Sapego
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: