jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davide Giannella (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OAK-2880) NPE in SegmentWriter.writeMap
Date Wed, 02 Mar 2016 11:37:18 GMT

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

Davide Giannella updated OAK-2880:
----------------------------------
    Fix Version/s: 1.4

> NPE in SegmentWriter.writeMap
> -----------------------------
>
>                 Key: OAK-2880
>                 URL: https://issues.apache.org/jira/browse/OAK-2880
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: segmentmk
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>              Labels: resilience
>             Fix For: 1.3.0, 1.4, 1.2.4, 1.0.19
>
>
> Under some rare conditions which are not entirely clear yet {{SegmentWriter.writeMap}}
results in a {{NPE}}:
> {noformat}
> java.lang.NullPointerException
> 	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:192)
> 	at org.apache.jackrabbit.oak.plugins.segment.SegmentWriter.writeRecordId(SegmentWriter.java:366)
> 	at org.apache.jackrabbit.oak.plugins.segment.SegmentWriter.writeMapLeaf(SegmentWriter.java:417)
> 	at org.apache.jackrabbit.oak.plugins.segment.SegmentWriter.writeMapBucket(SegmentWriter.java:475)
> 	at org.apache.jackrabbit.oak.plugins.segment.SegmentWriter.writeMapBucket(SegmentWriter.java:511)
> 	at org.apache.jackrabbit.oak.plugins.segment.SegmentWriter.writeMap(SegmentWriter.java:711)
> {noformat}
> This happens when the {{base}} passed to {{writeMap(MapRecord base, Map<String, RecordId>
changes)}} is not null but doesn't contain some of the keys *removed* through the updates
provided in the passed {{changes}}. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message