Chetan Mehrotra created OAK-1524:
------------------------------------
Summary: NPE in TarMK flush thread
Key: OAK-1524
URL: https://issues.apache.org/jira/browse/OAK-1524
Project: Jackrabbit Oak
Issue Type: Bug
Components: core
Reporter: Chetan Mehrotra
Assignee: Jukka Zitting
Priority: Minor
Fix For: 0.19
Following exception is seen at times with SegmentStore
{noformat}
unning org.apache.jackrabbit.oak.jcr.tck.NodetypeIT
Exception in thread "TarMK flush thread: target/tar.1303694685400657"
java.lang.NullPointerException
at
org.apache.jackrabbit.oak.plugins.segment.file.FileStore.flush(FileStore.java:237)
at
org.apache.jackrabbit.oak.plugins.segment.file.FileStore$1.run(FileStore.java:196)
at java.lang.Thread.run(Thread.java:662)
{noformat}
Looking at FileStore#L237 [1] {{segments}} might be null when memoryMapped mode
is used (default). Possibly a null check is required there
[1]
https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/FileStore.java#L237
--
This message was sent by Atlassian JIRA
(v6.2#6252)