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

java/io/File/MaxPathLength.java fails intermittently in the clean-up stage

    XMLWordPrintable

Details

    • b117
    • windows
    • Verified

    Backports

      Description

        MaxPathLength.java testcase failed when cleaning up those created long-path directories.

        Here is the test log,

        #Test Results (version 2)
        #Thu Oct 17 18:30:55 PDT 2013
        #checksum:6bd157ec10254eb5
        #-----testdescription-----
        $file=C\:\\Users\\aurora\\sandbox\\testbase\\test\\java\\io\\File\\MaxPathLength.java
        $root=C\:\\Users\\aurora\\sandbox\\testbase\\test
        keywords=bug4759207 bug4403166 bug4165006 bug4403166 bug6182812 bug6274272 bug7160013
        run=ASSUMED_ACTION main MaxPathLength\r\n
        source=MaxPathLength.java
        title=Test to see if win32 path length can be greater than 260

        #-----environment-----

        #-----testresult-----
        description=file\:/C\:/Users/aurora/sandbox/testbase/test/java/io/File/MaxPathLength.java
        elapsed=201 0\:00\:00.201
        end=Thu Oct 17 18\:30\:55 PDT 2013
        environment=regtest
        execStatus=Failed. Execution failed\: `main' threw exception\: java.nio.file.DirectoryNotEmptyException\: .\\aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa3\\aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa4\\aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa5
        hostname=sc11136372.us.oracle.com
        javatestOS=Windows 8 6.2 (amd64)
        javatestVersion=4.4
        jtregVersion=jtreg 4.1 fcs b07
        script=com.sun.javatest.regtest.RegressionScript
        sections=script_messages build compile main
        start=Thu Oct 17 18\:30\:54 PDT 2013
        test=java/io/File/MaxPathLength.java
        user.name=aurora
        work=C\:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_io\\JTwork\\java\\io\\File

        #section:script_messages
        ----------messages:(5/230)*----------
        JDK under test: (C:\\Users\\aurora\\sandbox\\jdk)
        java version "1.8.0-ea"
        Java(TM) SE Runtime Environment (build 1.8.0-ea-langtools-nightly-h503-20131017-b113-b00)
        Java HotSpot(TM) 64-Bit Server VM (build 25.0-b53, mixed mode)


        #section:build
        ----------messages:(3/101)----------
        command: build MaxPathLength
        reason: Named class compiled on demand
        elapsed time (seconds): 0.082
        result: Passed. Build successful

        #section:compile
        ----------messages:(3/206)*----------
        command: compile -XDignore.symbol.file=true C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\io\\File\\MaxPathLength.java
        reason: .class file out of date or does not exist
        elapsed time (seconds): 0.082
        ----------rerun:(22/1945)*----------
        'PATH=C:\\curl;C:\\PROGRA~2\\MKSTOO~1\\bin64;C:\\PROGRA~2\\MKSTOO~1\\bin;C:\\PROGRA~2\\MKSTOO~1\\bin\\X11;C:\\PROGRA~2\\MKSTOO~1\\mksnt;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\' \\
        SystemDrive=C: \\
        'SystemRoot=C:\\Windows' \\
        'TEMP=C:\\Users\\aurora\\AppData\\Local\\Temp' \\
        'TMP=C:\\Users\\aurora\\AppData\\Local\\Temp' \\
        'windir=C:\\Windows' \\
            'C:\\Users\\aurora\\sandbox\\jdk\\bin\\javac' \\
                -J-ea \\
                -J-esa \\
                -J-Xmx512m \\
                -J-Dtest.vm.opts='-ea -esa -Xmx512m' \\
                -J-Dcompile.jdk='C:\\Users\\aurora\\sandbox\\jdk' \\
                -J-Dtest.src.path='C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\io\\File' \\
                -J-Dtest.src='C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\io\\File' \\
                -J-Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m' \\
                -J-Dtest.class.path='C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_io\\JTwork\\classes\\java\\io\\File' \\
                -J-Dtest.classes='C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_io\\JTwork\\classes\\java\\io\\File' \\
                -J-Dtest.class.path.prefix='C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_io\\JTwork\\classes\\java\\io\\File;C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\io\\File' \\
                -J-Dtest.jdk='C:\\Users\\aurora\\sandbox\\jdk' \\
                -J-Dtest.java.opts= \\
                -J-Dtest.compiler.opts= \\
                -d 'C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_io\\JTwork\\classes\\java\\io\\File' -classpath 'C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_io\\JTwork\\classes\\java\\io\\File;C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\io\\File;C:\\Users\\aurora\\sandbox\\jdk\\lib\\tools.jar' -sourcepath 'C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\io\\File' -XDignore.symbol.file=true 'C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\io\\File\\MaxPathLength.java'
        result: Passed. Compilation successful

        #section:main
        ----------messages:(3/128)----------
        command: main MaxPathLength
        reason: Assumed action based on file name: run main MaxPathLength
        elapsed time (seconds): 0.118
        ----------rerun:(20/1612)*----------
        'PATH=C:\\curl;C:\\PROGRA~2\\MKSTOO~1\\bin64;C:\\PROGRA~2\\MKSTOO~1\\bin;C:\\PROGRA~2\\MKSTOO~1\\bin\\X11;C:\\PROGRA~2\\MKSTOO~1\\mksnt;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\' \\
        SystemDrive=C: \\
        'SystemRoot=C:\\Windows' \\
        'TEMP=C:\\Users\\aurora\\AppData\\Local\\Temp' \\
        'TMP=C:\\Users\\aurora\\AppData\\Local\\Temp' \\
        'windir=C:\\Windows' \\
            'C:\\Users\\aurora\\sandbox\\jdk\\bin\\java' \\
                -Dtest.vm.opts='-ea -esa -Xmx512m' \\
                -Dcompile.jdk='C:\\Users\\aurora\\sandbox\\jdk' \\
                -Dtest.src.path='C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\io\\File' \\
                -Dtest.src='C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\io\\File' \\
                -Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m' \\
                -Dtest.class.path='C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_io\\JTwork\\classes\\java\\io\\File' \\
                -Dtest.classes='C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_io\\JTwork\\classes\\java\\io\\File' \\
                -Dtest.class.path.prefix='C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_io\\JTwork\\classes\\java\\io\\File;C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\io\\File' \\
                -Dtest.jdk='C:\\Users\\aurora\\sandbox\\jdk' \\
                -Dtest.java.opts= \\
                -Dtest.compiler.opts= \\
                -classpath 'C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_io\\JTwork\\classes\\java\\io\\File;C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\io\\File;C:\\Users\\aurora\\sandbox\\jdk\\lib\\tools.jar' \\
                MaxPathLength
        ----------System.err:(16/1083)*----------
        java.nio.file.DirectoryNotEmptyException: .\\aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa3\\aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa4\\aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa5
        at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:266)
        at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
        at java.nio.file.Files.deleteIfExists(Files.java:1162)
        at MaxPathLength.testLongPath(MaxPathLength.java:185)
        at MaxPathLength.main(MaxPathLength.java:54)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:746)
        at java.lang.Thread.run(Thread.java:744)

        JavaTest Message: Test threw exception: java.nio.file.DirectoryNotEmptyException
        JavaTest Message: shutting down test

        result: Failed. Execution failed: `main' threw exception: java.nio.file.DirectoryNotEmptyException: .\aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa3\aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa4\aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa5


        test result: Failed. Execution failed: `main' threw exception: java.nio.file.DirectoryNotEmptyException: .\aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa3\aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa4\aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa5

        Attachments

          Issue Links

            Activity

              People

                dxu Dan Xu (Inactive)
                dxu Dan Xu (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: