Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-8040

KahaDB: PageFile - Unexpected io error on pagefile write NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.16.0
    • 5.17.0
    • KahaDB
    • None

    Description

      With:

      <kahaDB ... enableIndexWriteAsync="true" /> 

      A large transaction write with pages disk bound can be modified with an update leading to a NPE of the form:

      [aDB Page Writer] - INFO  PageFile  - Unexpected io error on pagefile write of 4000 pages.
      [aDB Page Writer] - INFO  PageFile  - Unexpected io error on pagefile write of 4000 pages.
      java.io.IOException: Cannot create recovery file. Reason: java.lang.NullPointerException at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:28) at org.apache.activemq.store.kahadb.disk.page.PageFile.writeBatch(PageFile.java:1163) at org.apache.activemq.store.kahadb.disk.page.PageFile.pollWrites(PageFile.java:1117) at org.apache.activemq.store.kahadb.disk.page.PageFile.access$300(PageFile.java:68) at org.apache.activemq.store.kahadb.disk.page.PageFile$3.run(PageFile.java:1323)Caused by: java.lang.NullPointerException at java.util.zip.Adler32.update(Adler32.java:73) at org.apache.activemq.store.kahadb.disk.page.PageFile.writeBatch(PageFile.java:1161)
      ...
      

      Attachments

        Activity

          People

            gtully Gary Tully
            gtully Gary Tully
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: