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

Possible race condition in ChunkedOutputStream/Test regression test.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • core-libs
    • None
    • beta
    • generic
    • generic

      About 50% of the time during integrations, I get a timeout failure on both the
      http and https versions of the following test:

      sun/net/www/http/ChunkedOutputStream/Test.java: Cannot flush output stream when writing to an HttpUrlConnection

      It's probably closing one side unexpectedly, and the peer is getting
      unexpected results.

      NOTE: Both http and HTTPS versions of this test need to be fixed.

      This integration had the following platforms fail:

      linux-i586 (http), windows-i586 (https), solaris-i586 (http).

      I do believe we've had failures on other platforms, but didn't keep
      good records.

      #Test Results (version 2)
      #Tue Nov 30 09:17:07 PST 2004
      #checksum:b68b7db1b8065ff
      #-----testdescription-----
      $file=/usr/security/ws/mustang-integrations/test/solaris-i586/J2SE_TESTS/sun/net/www/http/ChunkedOutputStream/Test.java
      $root=/usr/security/ws/mustang-integrations/test/solaris-i586/J2SE_TESTS
      keywords=bug5026745 othervm
      library=../../httptest/
      run=USER_SPECIFIED build HttpCallback HttpServer ClosedChannelList HttpTransaction\nUSER_SPECIFIED main/othervm/timeout=500 Test\n
      source=Test.java
      title=Cannot flush output stream when writing to an HttpUrlConnection

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

      #-----testresult-----
      description=file:///usr/security/ws/mustang-integrations/test/solaris-i586/J2SE_TESTS/sun/net/www/http/ChunkedOutputStream/Test.java
      end=Tue Nov 30 09:17:07 PST 2004
      environment=regtest
      execStatus=Failed. Execution failed: Program `/usr/security/ws/mustang-integrations/control/build/solaris-i586/j2sdk-image/bin/java' interrupted! (timed out?)
      javatestOS=SunOS 5.8 (x86)
      javatestVersion=2.1.6
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages build compile compile compile compile build compile main
      start=Tue Nov 30 09:08:34 PST 2004
      status=Failed. Execution failed: Program `/usr/security/ws/mustang-integrations/control/build/solaris-i586/j2sdk-image/bin/java' interrupted! (timed out?)
      test=sun/net/www/http/ChunkedOutputStream/Test.java
      work=/usr/security/ws/mustang-integrations/test/solaris-i586/J2SE_TESTS/JTwork/sun/net/www/http/ChunkedOutputStream

      #section:script_messages
      ----------messages:(5/321)----------
      JDK under test: (/usr/security/ws/mustang-integrations/control/build/solaris-i586/j2sdk-image)
      java version "1.6.0-internal"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-internal-wetmore_29_Nov_2004_17_17)
      Java HotSpot(TM) Client VM (build 1.6.0-ea-b13, mixed mode)
      Timeout signalled after 500.0 seconds

      #section:build
      ----------messages:(3/163)----------
      command: build HttpTransaction
      reason: User specified action: run build HttpCallback HttpServer ClosedChannelList HttpTransaction
      elapsed time (seconds): 10.575
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/235)----------
      command: compile /usr/security/ws/mustang-integrations/test/solaris-i586/J2SE_TESTS/sun/net/www/http/ChunkedOutputStream/../../httptest/HttpCallback.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 3.191
      ----------System.out:(0/0)----------
      ----------System.err:(2/110)----------
      Note: Some input files use unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/233)----------
      command: compile /usr/security/ws/mustang-integrations/test/solaris-i586/J2SE_TESTS/sun/net/www/http/ChunkedOutputStream/../../httptest/HttpServer.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 2.864
      ----------System.out:(0/0)----------
      ----------System.err:(2/229)----------
      Note: /usr/security/ws/mustang-integrations/test/solaris-i586/J2SE_TESTS/sun/net/www/http/ChunkedOutputStream/../../httptest/HttpServer.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/240)----------
      command: compile /usr/security/ws/mustang-integrations/test/solaris-i586/J2SE_TESTS/sun/net/www/http/ChunkedOutputStream/../../httptest/ClosedChannelList.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 2.098
      ----------System.out:(0/0)----------
      ----------System.err:(2/236)----------
      Note: /usr/security/ws/mustang-integrations/test/solaris-i586/J2SE_TESTS/sun/net/www/http/ChunkedOutputStream/../../httptest/ClosedChannelList.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/238)----------
      command: compile /usr/security/ws/mustang-integrations/test/solaris-i586/J2SE_TESTS/sun/net/www/http/ChunkedOutputStream/../../httptest/HttpTransaction.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 2.409
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:build
      ----------messages:(3/90)----------
      command: build Test
      reason: Named class compiled on demand
      elapsed time (seconds): 2.349
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/212)----------
      command: compile /usr/security/ws/mustang-integrations/test/solaris-i586/J2SE_TESTS/sun/net/www/http/ChunkedOutputStream/Test.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 2.347
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:main
      ----------messages:(3/117)----------
      command: main Test
      reason: User specified action: run main/othervm/timeout=500 Test
      elapsed time (seconds): 500.099
      ----------System.out:(3/154)----------
      Server started: listening on port: 43944
      client opening connection to: http://localhost:43944/d0
      client opening connection to: http://localhost:43944/d01
      ----------System.err:(0/0)----------
      result: Failed. Execution failed: Program `/usr/security/ws/mustang-integrations/control/build/solaris-i586/j2sdk-image/bin/java' interrupted! (timed out?)


      test result: Failed. Execution failed: Program `/usr/security/ws/mustang-integrations/control/build/solaris-i586/j2sdk-image/bin/java' interrupted! (timed out?)



            wetmore Bradford Wetmore
            wetmore Bradford Wetmore
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: