[
https://issues.apache.org/jira/browse/OAK-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13930196#comment-13930196
]
Marcel Reutegger commented on OAK-1524:
---------------------------------------
I saw this as well when running the ReadPropertyTest benchmark:
{noformat}
Apache Jackrabbit Oak 0.19-SNAPSHOT
# ReadPropertyTest C min 10% 50% 90% max
N
Exception in thread "TarMK flush thread: target/Oak-Tar-1394524803521"
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:744)
Oak-Tar 1 4 4 4 5 15
13647
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.close(FileStore.java:296)
at
org.apache.jackrabbit.oak.fixture.OakRepositoryFixture$4.tearDownCluster(OakRepositoryFixture.java:222)
at
org.apache.jackrabbit.oak.benchmark.AbstractTest.run(AbstractTest.java:140)
at
org.apache.jackrabbit.oak.benchmark.ReadPropertyTest.run(ReadPropertyTest.java:27)
at
org.apache.jackrabbit.oak.benchmark.BenchmarkRunner.main(BenchmarkRunner.java:215)
at org.apache.jackrabbit.oak.run.Main.main(Main.java:84)
{noformat}
> 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)