Details
Description
Under some rare conditions which are not entirely clear yet SegmentWriter.writeMap results in a NPE:
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)
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.
Attachments
Issue Links
- relates to
-
OAK-2862 CompactionMap#compress() inefficient for large compaction maps
- Closed