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

OakStreamingIndexFile negative file length

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.38.0
    • 1.40.0
    • indexing
    • None

    Description

      The calculation done here results in negative file length if blob length comes as 0.

      Negative file length causes confusion when it gets reported in errors like -

      org.apache.jackrabbit.oak.plugins.index.search.BadIndexTracker Could not open the Fulltext index at [/oak:index/ntBaseLucene-2]
      java.io.IOException: Invalid byte range request for [/oak:index/ntBaseLucene-2][_6l.cfs], position: 0, file length: -16, len: 1

      and 

      [async-index-update-async] org.apache.jackrabbit.oak.plugins.index.lucene.directory.CopyOnReadDirectory [/oak:index/ntBaseLucene-2] Found local copy for _6l.cfs in NIOFSDirectory@/<path>/repository/index/ntBaseLucene2-1612972365881/data lockFactory=NativeFSLockFactory@/<path>/repository/index/ntBaseLucene2-1612972365881/data but size of local 17266 differs from remote -16. Content would be read from remote file only  

      Attachments

        Issue Links

          Activity

            People

              amrverma Amrit Verma
              amrverma Amrit Verma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: