Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4481237

FileHandler locking fails over NFS on Linux

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description



      Name: bsC130419 Date: 07/18/2001


      java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
      Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)


      The constructors for java.util.logging.FileHandler that take in String
      arguments do not work correctly.

      Sample code:
      public class LoggerTest {
          private static FileHandler fh;

          public static void main(String[] args) {
      try {
      fh = new FileHandler("/home/foo/logs/foo.log");
      }
      catch (Exception e) {
      e.printStackTrace();
      }
          }
      }

      Running this test class causes an infinite loop in the FileHandler
      constructor... a bunch of files get created in /home/foo/logs/, with filenames
      such as foo.log.lck, foo.log.1.lck, foo.log.2.lck, etc.

      One of these files is created approximately every 5 seconds, which seems to
      indicate that some sort of operation is timing out.

      The no-argument constructor seems to work... it creates 4 files in /tmp:
      java0.log, java0.log.lck, java1.log, and java1.log.lck. Specifying these same
      filenames to the one-argument constructor doesn't work.
      (Review ID: 128317)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ghamiltosunw Graham Hamilton (Inactive)
              Reporter:
              bstrathesunw Bill Strathearn (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: