Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-1524

NPE in TarMK flush thread

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.19
    • core
    • None

    Description

      Following exception is seen at times with SegmentStore

      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)
      
      

      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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jukkaz Jukka Zitting
            chetanm Chetan Mehrotra
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment