Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-1803

FileUtils recursive delete may throw NullPointerException if files are deleted outside of the JVM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • M4
    • 0.5
    • Java Common
    • None

    Description

      Summary:

      When performing a recursive delete if a file that java has not yet processed is deleted then a NPE will be thrown an example of this can be seen when the FtD code is clearing the queueBacking store and the user is performing an rm -rf of the backing store at the same time:

      java.lang.NullPointerException
      at org.apache.qpid.util.FileUtils.delete(FileUtils.java:253)
      at org.apache.qpid.util.FileUtils.delete(FileUtils.java:255)
      at org.apache.qpid.util.FileUtils.delete(FileUtils.java:255)
      at org.apache.qpid.server.queue.FileQueueBackingStoreFactory.setFlowToDisk(FileQueueBackingStoreFactory.java:87)
      at org.apache.qpid.server.queue.FileQueueBackingStoreFactory.configure(FileQueueBackingStoreFactory.java:41)

      Attachments

        Activity

          People

            ritchiem Martin Ritchie
            ritchiem Martin Ritchie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: