[
https://issues.apache.org/jira/browse/IGNITE-10273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16688052#comment-16688052
]
ASF GitHub Bot commented on IGNITE-10273:
-----------------------------------------
GitHub user isapego opened a pull request:
https://github.com/apache/ignite/pull/5399
IGNITE-10273: Fixed retrieval of affinity mapping
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gridgain/apache-ignite ignite-10273
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/ignite/pull/5399.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #5399
----
commit 904d22f164baac4f206f84b0e1276f31369c8fa2
Author: Igor Sapego <isapego@...>
Date: 2018-11-15T12:44:17Z
IGNITE-10273: Added test that shows the issue
commit 4a86945cb3ea11d77978ecabe35f836afa29d10f
Author: Igor Sapego <isapego@...>
Date: 2018-11-15T12:46:56Z
IGNITE-10273: Fix
----
> CPP Thin: Client is unable to get affinity mapping in some cases
> ----------------------------------------------------------------
>
> Key: IGNITE-10273
> URL: https://issues.apache.org/jira/browse/IGNITE-10273
> Project: Ignite
> Issue Type: Bug
> Components: thin client
> Reporter: Igor Sapego
> Assignee: Igor Sapego
> Priority: Major
> Labels: cpp
> Fix For: 2.8
>
>
> Reproducer test:
> {code:cpp}
> 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);
> }
> }
> {code:cpp}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)