[
https://issues.apache.org/jira/browse/IGNITE-7085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16278439#comment-16278439
]
ASF GitHub Bot commented on IGNITE-7085:
----------------------------------------
GitHub user asfedotov opened a pull request:
https://github.com/apache/ignite/pull/3143
IGNITE-7085 When PDS is enabled and IGNITE_BINARY_SORT_OBJECT_FIELDS …
…is set and IgniteCache#put is called node hangs
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gridgain/apache-ignite ignite-7085
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/ignite/pull/3143.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 #3143
----
commit 6da957cbd5546ff8340ded18342db325fa3a04ed
Author: Alexander Fedotov <[email protected]>
Date: 2017-12-01T11:16:15Z
IGNITE-7085 When PDS is enabled and IGNITE_BINARY_SORT_OBJECT_FIELDS is set
and IgniteCache#put is called node hangs
----
> When PDS is enabled and IGNITE_BINARY_SORT_OBJECT_FIELDS property is set and
> IgniteCache#put is called a node hangs
> -------------------------------------------------------------------------------------------------------------------
>
> Key: IGNITE-7085
> URL: https://issues.apache.org/jira/browse/IGNITE-7085
> Project: Ignite
> Issue Type: Bug
> Components: binary
> Affects Versions: 2.1
> Reporter: Alexandr Fedotov
> Assignee: Alexandr Fedotov
> Fix For: 2.4
>
>
> When PDS is enabled and IGNITE_BINARY_SORT_OBJECT_FIELDS property is set and
> IgniteCache#put is called a node hangs.
> The root cause is that when IGNITE_BINARY_SORT_OBJECT_FIELDS flag is enabled
> BinaryMetadata#fields field is stored as TreeMap, but because
> BinaryUtils#WRAP_TREES is
> set by default, that leads to BinaryMetadata#fields being wrapped into a
> BinaryTreeMap.
> When an update for BinaryMetadata is initiated it ends up in a discovery
> thread from where
> a metadata update for BinaryTreeMap is initiated. Since this update should be
> processed by the same discovery thread, that results in a deadlock.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)