[ 
https://issues.apache.org/jira/browse/OAK-2880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14699638#comment-14699638
 ] 

Michael Dürig commented on OAK-2880:
------------------------------------

Merged into 1.0 at http://svn.apache.org/r1696302
Merged into 1.2 at http://svn.apache.org/r1696303

> 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.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)

Reply via email to