jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomek Rękawek (JIRA) <j...@apache.org>
Subject [jira] [Updated] (OAK-6294) The "missing" node cache value breaks the DNStore#applyChanges
Date Fri, 02 Jun 2017 09:28:04 GMT

     [ https://issues.apache.org/jira/browse/OAK-6294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tomek Rękawek updated OAK-6294:
-------------------------------
    Description: 
In the {{DocumentNodeStore#nodeCache}}, the special object {{missing}} is being used to mark
the node entries that don't exists in the repository.

This object should be unwrapped to {{null}} every time we call {{nodeCache#getIfPresent()}}
method. It's not the case in the {{applyChanges()}} method - as a result, we may get a NPE
(since the {{missing.getLastRev() == null}}).

  was:
In the {{DocumentNodeStore#nodeCache}}, the special object {{missing}} is being used to mark
the node entries that don't exists in the repository.

This object should be unwrapped to {{null}} every time we call {{nodeCache#getIfPresent()}}
method. It's not the case in the applyChanges() method - as a result, we may get a NPE (since
the {{missing.getLastRev() == null}}).


> The "missing" node cache value breaks the DNStore#applyChanges
> --------------------------------------------------------------
>
>                 Key: OAK-6294
>                 URL: https://issues.apache.org/jira/browse/OAK-6294
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: documentmk
>    Affects Versions: 1.4.10
>            Reporter: Tomek Rękawek
>             Fix For: 1.8
>
>
> In the {{DocumentNodeStore#nodeCache}}, the special object {{missing}} is being used
to mark the node entries that don't exists in the repository.
> This object should be unwrapped to {{null}} every time we call {{nodeCache#getIfPresent()}}
method. It's not the case in the {{applyChanges()}} method - as a result, we may get a NPE
(since the {{missing.getLastRev() == null}}).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message