Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-210

IO error during deployment scanning triggers undeployment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Alpha14
    • 1.0.0.Alpha10
    • Management
    • None

      If an IO error such as reaching the file descriptor limit occurs during deployment scanning, the scanner continues with an empty deployment list causing it to undeploy applications.

      This occurs because FileSystemDeploymentService.scanDirectory() treats File.listFiles() returning null as an empty list rather than an error. http://docs.oracle.com/javase/7/docs/api/java/io/File.html#listFiles%28%29 notes that it returns an empty array if the directory is empty, and null if it is not a directory or an IO error occurs.

      It should instead respond to a null return value by aborting the scanner run, with a log message, and not proceed to undeploy applications.

              ehugonne1@redhat.com Emmanuel Hugonnet
              rhn-support-jlivings James Livingston (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: