Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-3145

FarmMemberService fails if /farm dir is on a separate filesystem from /tmp

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • JBossAS-4.0.4.GA
    • JBossAS-4.0.3 SP1, JBossAS-4.0.4.CR2
    • Clustering, Deployers
    • None
    • Medium

    Description

      FarmMemberService.performDeploy() calls File.renameTo() to move a replicated file from tmp to /farm. Per the Javadoc for File.renameTo():

      "Many aspects of the behavior of this method are inherently
      platform-dependent: The rename operation might not be able to move a
      file from one filesystem to another, it might not be atomic, and it
      might not succeed if a file with the destination abstract pathname
      already exists. The return value should always be checked to make sure
      that the rename operation was successful."

      We've had reports of problems in the rename when tmp and farm were different filesystems.

      If the rename fails, can we fall back on a copy-and-delete to move the file?

      Attachments

        Activity

          People

            smarlow1@redhat.com Scott Marlow
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: