You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Alexandr Fedotov (JIRA)" <ji...@apache.org> on 2017/12/01 10:40:00 UTC

[jira] [Created] (IGNITE-7085) When PDS is enabled and IGNITE_BINARY_SORT_OBJECT_FIELDS property is set and IgniteCache#put is called a node hangs

Alexandr Fedotov created IGNITE-7085:
----------------------------------------

             Summary: 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 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)